Class CreateVolumeRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.fsx.model.FSxRequest
-
- software.amazon.awssdk.services.fsx.model.CreateVolumeRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateVolumeRequest.Builder,CreateVolumeRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateVolumeRequest extends FSxRequest implements ToCopyableBuilder<CreateVolumeRequest.Builder,CreateVolumeRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateVolumeRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateVolumeRequest.Builderbuilder()StringclientRequestToken()Returns the value of the ClientRequestToken property for this object.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.Stringname()Specifies the name of the volume that you're creating.CreateOntapVolumeConfigurationontapConfiguration()Specifies the configuration to use when creating the ONTAP volume.CreateOpenZFSVolumeConfigurationopenZFSConfiguration()Specifies the configuration to use when creating the OpenZFS volume.List<SdkField<?>>sdkFields()static Class<? extends CreateVolumeRequest.Builder>serializableBuilderClass()List<Tag>tags()Returns the value of the Tags property for this object.CreateVolumeRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.VolumeTypevolumeType()Specifies the type of volume to create;ONTAPandOPENZFSare the only valid volume types.StringvolumeTypeAsString()Specifies the type of volume to create;ONTAPandOPENZFSare the only valid volume types.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
clientRequestToken
public final String clientRequestToken()
Returns the value of the ClientRequestToken property for this object.- Returns:
- The value of the ClientRequestToken property for this object.
-
volumeType
public final VolumeType volumeType()
Specifies the type of volume to create;
ONTAPandOPENZFSare the only valid volume types.If the service returns an enum value that is not available in the current SDK version,
volumeTypewill returnVolumeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvolumeTypeAsString().- Returns:
- Specifies the type of volume to create;
ONTAPandOPENZFSare the only valid volume types. - See Also:
VolumeType
-
volumeTypeAsString
public final String volumeTypeAsString()
Specifies the type of volume to create;
ONTAPandOPENZFSare the only valid volume types.If the service returns an enum value that is not available in the current SDK version,
volumeTypewill returnVolumeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvolumeTypeAsString().- Returns:
- Specifies the type of volume to create;
ONTAPandOPENZFSare the only valid volume types. - See Also:
VolumeType
-
name
public final String name()
Specifies the name of the volume that you're creating.
- Returns:
- Specifies the name of the volume that you're creating.
-
ontapConfiguration
public final CreateOntapVolumeConfiguration ontapConfiguration()
Specifies the configuration to use when creating the ONTAP volume.
- Returns:
- Specifies the configuration to use when creating the ONTAP volume.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
tags
public final List<Tag> tags()
Returns the value of the Tags property for this object.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- The value of the Tags property for this object.
-
openZFSConfiguration
public final CreateOpenZFSVolumeConfiguration openZFSConfiguration()
Specifies the configuration to use when creating the OpenZFS volume.
- Returns:
- Specifies the configuration to use when creating the OpenZFS volume.
-
toBuilder
public CreateVolumeRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateVolumeRequest.Builder,CreateVolumeRequest>- Specified by:
toBuilderin classFSxRequest
-
builder
public static CreateVolumeRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateVolumeRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-