Class ToolAttributes
- java.lang.Object
-
- org.opensearch.client.opensearch.ml.ToolAttributes
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ToolAttributes.Builder,ToolAttributes>
@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class ToolAttributes extends java.lang.Object implements PlainJsonSerializable, ToCopyableBuilder<ToolAttributes.Builder,ToolAttributes>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classToolAttributes.BuilderBuilder forToolAttributes.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ToolAttributes>_DESERIALIZERJson deserializer forToolAttributes
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,JsonData>attributes()static ToolAttributes.Builderbuilder()booleanequals(java.lang.Object o)inthashCode()java.lang.StringinputSchema()API name:input_schemastatic ToolAttributesof(java.util.function.Function<ToolAttributes.Builder,ObjectBuilder<ToolAttributes>> 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 voidsetupToolAttributesDeserializer(ObjectDeserializer<ToolAttributes.Builder> op)java.lang.Booleanstrict()API name:strictToolAttributes.BuildertoBuilder()Create a new builderToCopyableBuilderthat is initialised with the current state of this object.-
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<ToolAttributes> _DESERIALIZER
Json deserializer forToolAttributes
-
-
Method Detail
-
of
public static ToolAttributes of(java.util.function.Function<ToolAttributes.Builder,ObjectBuilder<ToolAttributes>> fn)
-
attributes
@Nonnull public final java.util.Map<java.lang.String,JsonData> attributes()
-
inputSchema
@Nullable public final java.lang.String inputSchema()
API name:input_schema
-
strict
@Nullable public final java.lang.Boolean strict()
API name:strict
-
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 ToolAttributes.Builder toBuilder()
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ToolAttributes.Builder,ToolAttributes>- Returns:
- a new builder instance.
-
builder
@Nonnull public static ToolAttributes.Builder builder()
-
setupToolAttributesDeserializer
protected static void setupToolAttributesDeserializer(ObjectDeserializer<ToolAttributes.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-