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 interface
DiskInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DiskInfo.Builder
builder()
Integer
count()
The number of disks with this configuration.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends DiskInfo.Builder>
serializableBuilderClass()
Long
sizeInGB()
The size of the disk in GB.DiskInfo.Builder
toBuilder()
String
toString()
Returns a string representation of this object.DiskType
type()
The type of disk.String
typeAsString()
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,
type
will 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,
type
will 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:
toBuilder
in 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:
equalsBySdkFields
in 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.
-
-