Class Type
- java.lang.Object
-
- software.amazon.awssdk.services.appsync.model.Type
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Type.Builder,Type>
@Generated("software.amazon.awssdk:codegen") public final class Type extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Type.Builder,Type>
Describes a type.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The type Amazon Resource Name (ARN).static Type.Builderbuilder()Stringdefinition()The type definition.Stringdescription()The type description.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)TypeDefinitionFormatformat()The type format: SDL or JSON.StringformatAsString()The type format: SDL or JSON.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The type name.List<SdkField<?>>sdkFields()static Class<? extends Type.Builder>serializableBuilderClass()Type.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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 type name.
- Returns:
- The type name.
-
description
public final String description()
The type description.
- Returns:
- The type description.
-
arn
public final String arn()
The type Amazon Resource Name (ARN).
- Returns:
- The type Amazon Resource Name (ARN).
-
definition
public final String definition()
The type definition.
- Returns:
- The type definition.
-
format
public final TypeDefinitionFormat format()
The type format: SDL or JSON.
If the service returns an enum value that is not available in the current SDK version,
formatwill returnTypeDefinitionFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromformatAsString().- Returns:
- The type format: SDL or JSON.
- See Also:
TypeDefinitionFormat
-
formatAsString
public final String formatAsString()
The type format: SDL or JSON.
If the service returns an enum value that is not available in the current SDK version,
formatwill returnTypeDefinitionFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromformatAsString().- Returns:
- The type format: SDL or JSON.
- See Also:
TypeDefinitionFormat
-
toBuilder
public Type.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Type.Builder,Type>
-
builder
public static Type.Builder builder()
-
serializableBuilderClass
public static Class<? extends Type.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.
-
-