Class DiskInfo
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.DiskInfo
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DiskInfo.Builder,DiskInfo>
@Generated("software.amazon.awssdk:codegen") public final class DiskInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DiskInfo.Builder,DiskInfo>
Describes a disk.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDiskInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DiskInfo.Builderbuilder()Integercount()The number of disks with this configuration.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DiskInfo.Builder>serializableBuilderClass()LongsizeInGB()The size of the disk in GB.DiskInfo.BuildertoBuilder()StringtoString()Returns a string representation of this object.DiskTypetype()The type of disk.StringtypeAsString()The type of disk.-
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
-
sizeInGB
public final Long sizeInGB()
The size of the disk in GB.
- Returns:
- The size of the disk in GB.
-
count
public final Integer count()
The number of disks with this configuration.
- Returns:
- The number of disks with this configuration.
-
type
public final DiskType type()
The type of disk.
If the service returns an enum value that is not available in the current SDK version,
typewill returnDiskType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of disk.
- See Also:
DiskType
-
typeAsString
public final String typeAsString()
The type of disk.
If the service returns an enum value that is not available in the current SDK version,
typewill returnDiskType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of disk.
- See Also:
DiskType
-
toBuilder
public DiskInfo.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DiskInfo.Builder,DiskInfo>
-
builder
public static DiskInfo.Builder builder()
-
serializableBuilderClass
public static Class<? extends DiskInfo.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-