Class FieldValueUnion
- java.lang.Object
-
- software.amazon.awssdk.services.connectcases.model.FieldValueUnion
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FieldValueUnion.Builder,FieldValueUnion>
@Generated("software.amazon.awssdk:codegen") public final class FieldValueUnion extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FieldValueUnion.Builder,FieldValueUnion>
Object to store union of Field values.
The
Summarysystem field accepts 1500 characters while all other fields accept 500 characters.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFieldValueUnion.Builderstatic classFieldValueUnion.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanbooleanValue()Can be either null, or have a Boolean value type.static FieldValueUnion.Builderbuilder()DoubledoubleValue()Can be either null, or have a Double number value type.EmptyFieldValueemptyValue()An empty value.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static FieldValueUnionfromBooleanValue(Boolean booleanValue)Create an instance of this class withbooleanValue()initialized to the given value.static FieldValueUnionfromDoubleValue(Double doubleValue)Create an instance of this class withdoubleValue()initialized to the given value.static FieldValueUnionfromEmptyValue(Consumer<EmptyFieldValue.Builder> emptyValue)Create an instance of this class withemptyValue()initialized to the given value.static FieldValueUnionfromEmptyValue(EmptyFieldValue emptyValue)Create an instance of this class withemptyValue()initialized to the given value.static FieldValueUnionfromStringValue(String stringValue)Create an instance of this class withstringValue()initialized to the given value.static FieldValueUnionfromUserArnValue(String userArnValue)Create an instance of this class withuserArnValue()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends FieldValueUnion.Builder>serializableBuilderClass()StringstringValue()String value type.FieldValueUnion.BuildertoBuilder()StringtoString()Returns a string representation of this object.FieldValueUnion.Typetype()Retrieve an enum value representing which member of this object is populated.StringuserArnValue()Represents the user that performed the audit.-
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
-
booleanValue
public final Boolean booleanValue()
Can be either null, or have a Boolean value type. Only one value can be provided.
- Returns:
- Can be either null, or have a Boolean value type. Only one value can be provided.
-
doubleValue
public final Double doubleValue()
Can be either null, or have a Double number value type. Only one value can be provided.
- Returns:
- Can be either null, or have a Double number value type. Only one value can be provided.
-
emptyValue
public final EmptyFieldValue emptyValue()
An empty value.
- Returns:
- An empty value.
-
stringValue
public final String stringValue()
String value type.
- Returns:
- String value type.
-
userArnValue
public final String userArnValue()
Represents the user that performed the audit.
- Returns:
- Represents the user that performed the audit.
-
toBuilder
public FieldValueUnion.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FieldValueUnion.Builder,FieldValueUnion>
-
builder
public static FieldValueUnion.Builder builder()
-
serializableBuilderClass
public static Class<? extends FieldValueUnion.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.
-
fromBooleanValue
public static FieldValueUnion fromBooleanValue(Boolean booleanValue)
Create an instance of this class withbooleanValue()initialized to the given value.Can be either null, or have a Boolean value type. Only one value can be provided.
- Parameters:
booleanValue- Can be either null, or have a Boolean value type. Only one value can be provided.
-
fromDoubleValue
public static FieldValueUnion fromDoubleValue(Double doubleValue)
Create an instance of this class withdoubleValue()initialized to the given value.Can be either null, or have a Double number value type. Only one value can be provided.
- Parameters:
doubleValue- Can be either null, or have a Double number value type. Only one value can be provided.
-
fromEmptyValue
public static FieldValueUnion fromEmptyValue(EmptyFieldValue emptyValue)
Create an instance of this class withemptyValue()initialized to the given value.An empty value.
- Parameters:
emptyValue- An empty value.
-
fromEmptyValue
public static FieldValueUnion fromEmptyValue(Consumer<EmptyFieldValue.Builder> emptyValue)
Create an instance of this class withemptyValue()initialized to the given value.An empty value.
- Parameters:
emptyValue- An empty value.
-
fromStringValue
public static FieldValueUnion fromStringValue(String stringValue)
Create an instance of this class withstringValue()initialized to the given value.String value type.
- Parameters:
stringValue- String value type.
-
fromUserArnValue
public static FieldValueUnion fromUserArnValue(String userArnValue)
Create an instance of this class withuserArnValue()initialized to the given value.Represents the user that performed the audit.
- Parameters:
userArnValue- Represents the user that performed the audit.
-
type
public FieldValueUnion.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 beFieldValueUnion.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 beFieldValueUnion.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-