@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AnnotationValue.Builder |
static class |
AnnotationValue.Type |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
booleanValue()
Value for a Boolean annotation.
|
static AnnotationValue.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static AnnotationValue |
fromBooleanValue(Boolean booleanValue)
Create an instance of this class with
booleanValue() initialized to the given value. |
static AnnotationValue |
fromNumberValue(Double numberValue)
Create an instance of this class with
numberValue() initialized to the given value. |
static AnnotationValue |
fromStringValue(String stringValue)
Create an instance of this class with
stringValue() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Double |
numberValue()
Value for a Number annotation.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AnnotationValue.Builder> |
serializableBuilderClass() |
String |
stringValue()
Value for a String annotation.
|
AnnotationValue.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
AnnotationValue.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Double numberValue()
Value for a Number annotation.
public final Boolean booleanValue()
Value for a Boolean annotation.
public final String stringValue()
Value for a String annotation.
public AnnotationValue.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AnnotationValue.Builder,AnnotationValue>public static AnnotationValue.Builder builder()
public static Class<? extends AnnotationValue.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static AnnotationValue fromNumberValue(Double numberValue)
numberValue() initialized to the given value.
Value for a Number annotation.
numberValue - Value for a Number annotation.public static AnnotationValue fromBooleanValue(Boolean booleanValue)
booleanValue() initialized to the given value.
Value for a Boolean annotation.
booleanValue - Value for a Boolean annotation.public static AnnotationValue fromStringValue(String stringValue)
stringValue() initialized to the given value.
Value for a String annotation.
stringValue - Value for a String annotation.public AnnotationValue.Type type()
AnnotationValue.Type.UNKNOWN_TO_SDK_VERSION if 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 be AnnotationValue.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.