Class ReservedInstancesConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.ReservedInstancesConfiguration
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ReservedInstancesConfiguration.Builder,ReservedInstancesConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class ReservedInstancesConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReservedInstancesConfiguration.Builder,ReservedInstancesConfiguration>
Describes the configuration settings for the modified Reserved Instances.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ReservedInstancesConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
availabilityZone()
The Availability Zone for the modified Reserved Instances.static ReservedInstancesConfiguration.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Integer
instanceCount()
The number of modified Reserved Instances.InstanceType
instanceType()
The instance type for the modified Reserved Instances.String
instanceTypeAsString()
The instance type for the modified Reserved Instances.String
platform()
The network platform of the modified Reserved Instances.Scope
scope()
Whether the Reserved Instance is applied to instances in a Region or instances in a specific Availability Zone.String
scopeAsString()
Whether the Reserved Instance is applied to instances in a Region or instances in a specific Availability Zone.List<SdkField<?>>
sdkFields()
static Class<? extends ReservedInstancesConfiguration.Builder>
serializableBuilderClass()
ReservedInstancesConfiguration.Builder
toBuilder()
String
toString()
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
-
availabilityZone
public final String availabilityZone()
The Availability Zone for the modified Reserved Instances.
- Returns:
- The Availability Zone for the modified Reserved Instances.
-
instanceCount
public final Integer instanceCount()
The number of modified Reserved Instances.
This is a required field for a request.
- Returns:
- The number of modified Reserved Instances.
This is a required field for a request.
-
instanceType
public final InstanceType instanceType()
The instance type for the modified Reserved Instances.
If the service returns an enum value that is not available in the current SDK version,
instanceType
will returnInstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceTypeAsString()
.- Returns:
- The instance type for the modified Reserved Instances.
- See Also:
InstanceType
-
instanceTypeAsString
public final String instanceTypeAsString()
The instance type for the modified Reserved Instances.
If the service returns an enum value that is not available in the current SDK version,
instanceType
will returnInstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceTypeAsString()
.- Returns:
- The instance type for the modified Reserved Instances.
- See Also:
InstanceType
-
platform
public final String platform()
The network platform of the modified Reserved Instances.
- Returns:
- The network platform of the modified Reserved Instances.
-
scope
public final Scope scope()
Whether the Reserved Instance is applied to instances in a Region or instances in a specific Availability Zone.
If the service returns an enum value that is not available in the current SDK version,
scope
will returnScope.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromscopeAsString()
.- Returns:
- Whether the Reserved Instance is applied to instances in a Region or instances in a specific Availability Zone.
- See Also:
Scope
-
scopeAsString
public final String scopeAsString()
Whether the Reserved Instance is applied to instances in a Region or instances in a specific Availability Zone.
If the service returns an enum value that is not available in the current SDK version,
scope
will returnScope.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromscopeAsString()
.- Returns:
- Whether the Reserved Instance is applied to instances in a Region or instances in a specific Availability Zone.
- See Also:
Scope
-
toBuilder
public ReservedInstancesConfiguration.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ReservedInstancesConfiguration.Builder,ReservedInstancesConfiguration>
-
builder
public static ReservedInstancesConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReservedInstancesConfiguration.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.
-
-