Class GetAgentResponse
- java.lang.Object
-
- org.opensearch.client.opensearch.ml.GetAgentResponse
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<GetAgentResponse.Builder,GetAgentResponse>
@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class GetAgentResponse extends java.lang.Object implements PlainJsonSerializable, ToCopyableBuilder<GetAgentResponse.Builder,GetAgentResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetAgentResponse.BuilderBuilder forGetAgentResponse.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GetAgentResponse>_DESERIALIZERJson deserializer forGetAgentResponse
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetAgentResponse.Builderbuilder()java.lang.LongcreatedTime()The created time.java.lang.Stringdescription()The agent description.booleanequals(java.lang.Object o)inthashCode()java.lang.BooleanisHidden()Whether the agent is hidden.java.lang.LonglastUpdatedTime()The last updated time.java.lang.Stringname()API name:namestatic GetAgentResponseof(java.util.function.Function<GetAgentResponse.Builder,ObjectBuilder<GetAgentResponse>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupGetAgentResponseDeserializer(ObjectDeserializer<GetAgentResponse.Builder> op)GetAgentResponse.BuildertoBuilder()Create a new builderToCopyableBuilderthat is initialised with the current state of this object.java.util.List<ToolItems>tools()API name:toolsjava.lang.Stringtype()The agent type.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Methods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<GetAgentResponse> _DESERIALIZER
Json deserializer forGetAgentResponse
-
-
Method Detail
-
of
public static GetAgentResponse of(java.util.function.Function<GetAgentResponse.Builder,ObjectBuilder<GetAgentResponse>> fn)
-
createdTime
@Nullable public final java.lang.Long createdTime()
The created time.API name:
created_time
-
description
@Nullable public final java.lang.String description()
The agent description.API name:
description
-
isHidden
@Nullable public final java.lang.Boolean isHidden()
Whether the agent is hidden.API name:
is_hidden
-
lastUpdatedTime
@Nullable public final java.lang.Long lastUpdatedTime()
The last updated time.API name:
last_updated_time
-
name
@Nullable public final java.lang.String name()
API name:name
-
tools
@Nonnull public final java.util.List<ToolItems> tools()
API name:tools
-
type
@Nullable public final java.lang.String type()
The agent type.API name:
type
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
toBuilder
@Nonnull public GetAgentResponse.Builder toBuilder()
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<GetAgentResponse.Builder,GetAgentResponse>- Returns:
- a new builder instance.
-
builder
@Nonnull public static GetAgentResponse.Builder builder()
-
setupGetAgentResponseDeserializer
protected static void setupGetAgentResponseDeserializer(ObjectDeserializer<GetAgentResponse.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-