Class AnnotationValue
- java.lang.Object
-
- software.amazon.awssdk.services.xray.model.AnnotationValue
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AnnotationValue.Builder,AnnotationValue>
@Generated("software.amazon.awssdk:codegen") public final class AnnotationValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AnnotationValue.Builder,AnnotationValue>
Value of a segment annotation. Has one of three value types: Number, Boolean, or String.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAnnotationValue.Builderstatic classAnnotationValue.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanbooleanValue()Value for a Boolean annotation.static AnnotationValue.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static AnnotationValuefromBooleanValue(Boolean booleanValue)Create an instance of this class withbooleanValue()initialized to the given value.static AnnotationValuefromNumberValue(Double numberValue)Create an instance of this class withnumberValue()initialized to the given value.static AnnotationValuefromStringValue(String stringValue)Create an instance of this class withstringValue()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()DoublenumberValue()Value for a Number annotation.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AnnotationValue.Builder>serializableBuilderClass()StringstringValue()Value for a String annotation.AnnotationValue.BuildertoBuilder()StringtoString()Returns a string representation of this object.AnnotationValue.Typetype()Retrieve an enum value representing which member of this object is populated.-
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
-
numberValue
public final Double numberValue()
Value for a Number annotation.
- Returns:
- Value for a Number annotation.
-
booleanValue
public final Boolean booleanValue()
Value for a Boolean annotation.
- Returns:
- Value for a Boolean annotation.
-
stringValue
public final String stringValue()
Value for a String annotation.
- Returns:
- Value for a String annotation.
-
toBuilder
public AnnotationValue.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AnnotationValue.Builder,AnnotationValue>
-
builder
public static AnnotationValue.Builder builder()
-
serializableBuilderClass
public static Class<? extends AnnotationValue.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.
-
fromNumberValue
public static AnnotationValue fromNumberValue(Double numberValue)
Create an instance of this class withnumberValue()initialized to the given value.Value for a Number annotation.
- Parameters:
numberValue- Value for a Number annotation.
-
fromBooleanValue
public static AnnotationValue fromBooleanValue(Boolean booleanValue)
Create an instance of this class withbooleanValue()initialized to the given value.Value for a Boolean annotation.
- Parameters:
booleanValue- Value for a Boolean annotation.
-
fromStringValue
public static AnnotationValue fromStringValue(String stringValue)
Create an instance of this class withstringValue()initialized to the given value.Value for a String annotation.
- Parameters:
stringValue- Value for a String annotation.
-
type
public AnnotationValue.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beAnnotationValue.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beAnnotationValue.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-