Class GetMemoryResponse.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.ml.GetMemoryResponse.Builder
-
- All Implemented Interfaces:
CopyableBuilder<GetMemoryResponse.Builder,GetMemoryResponse>,MutableBuilder<GetMemoryResponse.Builder,GetMemoryResponse>,ObjectBuilder<GetMemoryResponse>
- Enclosing class:
- GetMemoryResponse
public static class GetMemoryResponse.Builder extends ObjectBuilderBase implements CopyableBuilder<GetMemoryResponse.Builder,GetMemoryResponse>
Builder forGetMemoryResponse.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetMemoryResponse.BuilderadditionalInfo(java.lang.String key, JsonData value)API name:additional_infoGetMemoryResponse.BuilderadditionalInfo(java.util.Map<java.lang.String,JsonData> map)API name:additional_infoGetMemoryResponsebuild()Builds aGetMemoryResponse.GetMemoryResponse.Buildercopy()Create a new builderCopyableBuilderthat is a copy of this one.GetMemoryResponse.BuildercreateTime(java.lang.String value)The create time.GetMemoryResponse.BuildermemoryId(java.lang.String value)API name:memory_idGetMemoryResponse.Buildername(java.lang.String value)API name:nameGetMemoryResponse.Buildertype(java.lang.String value)API name:typeGetMemoryResponse.BuilderupdatedTime(java.lang.String value)The updated time.GetMemoryResponse.Builderuser(java.lang.String value)The username of the user.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAll
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
-
-
-
Method Detail
-
copy
@Nonnull public GetMemoryResponse.Builder copy()
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<GetMemoryResponse.Builder,GetMemoryResponse>- Returns:
- a new builder instance.
-
additionalInfo
@Nonnull public final GetMemoryResponse.Builder additionalInfo(java.util.Map<java.lang.String,JsonData> map)
API name:additional_infoAdds all elements of
maptoadditionalInfo.
-
additionalInfo
@Nonnull public final GetMemoryResponse.Builder additionalInfo(java.lang.String key, JsonData value)
API name:additional_infoAdds an entry to
additionalInfo.
-
createTime
@Nonnull public final GetMemoryResponse.Builder createTime(@Nullable java.lang.String value)
The create time.API name:
create_time
-
memoryId
@Nonnull public final GetMemoryResponse.Builder memoryId(@Nullable java.lang.String value)
API name:memory_id
-
name
@Nonnull public final GetMemoryResponse.Builder name(@Nullable java.lang.String value)
API name:name
-
type
@Nonnull public final GetMemoryResponse.Builder type(@Nullable java.lang.String value)
API name:type
-
updatedTime
@Nonnull public final GetMemoryResponse.Builder updatedTime(@Nullable java.lang.String value)
The updated time.API name:
updated_time
-
user
@Nonnull public final GetMemoryResponse.Builder user(@Nullable java.lang.String value)
The username of the user.API name:
user
-
build
@Nonnull public GetMemoryResponse build()
Builds aGetMemoryResponse.- Specified by:
buildin interfaceObjectBuilder<GetMemoryResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-