Class Definition
- java.lang.Object
-
- software.amazon.awssdk.services.m2.model.Definition
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Definition.Builder,Definition>
@Generated("software.amazon.awssdk:codegen") public final class Definition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Definition.Builder,Definition>
The application definition for a particular application.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDefinition.Builderstatic classDefinition.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Definition.Builderbuilder()Stringcontent()The content of the application definition.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static DefinitionfromContent(String content)Create an instance of this class withcontent()initialized to the given value.static DefinitionfromS3Location(String s3Location)Create an instance of this class withs3Location()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Strings3Location()The S3 bucket that contains the application definition.List<SdkField<?>>sdkFields()static Class<? extends Definition.Builder>serializableBuilderClass()Definition.BuildertoBuilder()StringtoString()Returns a string representation of this object.Definition.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
-
content
public final String content()
The content of the application definition. This is a JSON object that contains the resource configuration/definitions that identify an application.
- Returns:
- The content of the application definition. This is a JSON object that contains the resource configuration/definitions that identify an application.
-
s3Location
public final String s3Location()
The S3 bucket that contains the application definition.
- Returns:
- The S3 bucket that contains the application definition.
-
toBuilder
public Definition.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Definition.Builder,Definition>
-
builder
public static Definition.Builder builder()
-
serializableBuilderClass
public static Class<? extends Definition.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.
-
fromContent
public static Definition fromContent(String content)
Create an instance of this class withcontent()initialized to the given value.The content of the application definition. This is a JSON object that contains the resource configuration/definitions that identify an application.
- Parameters:
content- The content of the application definition. This is a JSON object that contains the resource configuration/definitions that identify an application.
-
fromS3Location
public static Definition fromS3Location(String s3Location)
Create an instance of this class withs3Location()initialized to the given value.The S3 bucket that contains the application definition.
- Parameters:
s3Location- The S3 bucket that contains the application definition.
-
type
public Definition.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 beDefinition.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 beDefinition.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-