Class AutomatedReasoningPolicyUpdateTypeAnnotation
- java.lang.Object
-
- software.amazon.awssdk.services.bedrock.model.AutomatedReasoningPolicyUpdateTypeAnnotation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AutomatedReasoningPolicyUpdateTypeAnnotation.Builder,AutomatedReasoningPolicyUpdateTypeAnnotation>
@Generated("software.amazon.awssdk:codegen") public final class AutomatedReasoningPolicyUpdateTypeAnnotation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutomatedReasoningPolicyUpdateTypeAnnotation.Builder,AutomatedReasoningPolicyUpdateTypeAnnotation>
An annotation for modifying an existing custom type in an Automated Reasoning policy.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutomatedReasoningPolicyUpdateTypeAnnotation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutomatedReasoningPolicyUpdateTypeAnnotation.Builderbuilder()Stringdescription()The new description for the custom type, replacing the previous description.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasValues()For responses, this returns true if the service returned a value for the Values property.Stringname()The current name of the custom type to update.StringnewName()The new name for the custom type, if you want to rename it.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AutomatedReasoningPolicyUpdateTypeAnnotation.Builder>serializableBuilderClass()AutomatedReasoningPolicyUpdateTypeAnnotation.BuildertoBuilder()StringtoString()Returns a string representation of this object.List<AutomatedReasoningPolicyTypeValueAnnotation>values()The updated list of values for the custom type, which can include additions, modifications, or removals.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The current name of the custom type to update.
- Returns:
- The current name of the custom type to update.
-
newName
public final String newName()
The new name for the custom type, if you want to rename it. If not provided, the name remains unchanged.
- Returns:
- The new name for the custom type, if you want to rename it. If not provided, the name remains unchanged.
-
description
public final String description()
The new description for the custom type, replacing the previous description.
- Returns:
- The new description for the custom type, replacing the previous description.
-
hasValues
public final boolean hasValues()
For responses, this returns true if the service returned a value for the Values property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
values
public final List<AutomatedReasoningPolicyTypeValueAnnotation> values()
The updated list of values for the custom type, which can include additions, modifications, or removals.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasValues()method.- Returns:
- The updated list of values for the custom type, which can include additions, modifications, or removals.
-
toBuilder
public AutomatedReasoningPolicyUpdateTypeAnnotation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AutomatedReasoningPolicyUpdateTypeAnnotation.Builder,AutomatedReasoningPolicyUpdateTypeAnnotation>
-
builder
public static AutomatedReasoningPolicyUpdateTypeAnnotation.Builder builder()
-
serializableBuilderClass
public static Class<? extends AutomatedReasoningPolicyUpdateTypeAnnotation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-