Class Ec2InstanceSavingsPlansConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.costoptimizationhub.model.Ec2InstanceSavingsPlansConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Ec2InstanceSavingsPlansConfiguration.Builder,Ec2InstanceSavingsPlansConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class Ec2InstanceSavingsPlansConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Ec2InstanceSavingsPlansConfiguration.Builder,Ec2InstanceSavingsPlansConfiguration>
The EC2 instance Savings Plans configuration used for recommendations.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEc2InstanceSavingsPlansConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccountScope()The account scope that you want your recommendations for.static Ec2InstanceSavingsPlansConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhourlyCommitment()The hourly commitment for the Savings Plans type.StringinstanceFamily()The instance family of the recommended Savings Plan.StringpaymentOption()The payment option for the commitment.StringsavingsPlansRegion()The Amazon Web Services Region of the commitment.List<SdkField<?>>sdkFields()static Class<? extends Ec2InstanceSavingsPlansConfiguration.Builder>serializableBuilderClass()Stringterm()The Savings Plans recommendation term in years.Ec2InstanceSavingsPlansConfiguration.BuildertoBuilder()StringtoString()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
-
accountScope
public final String accountScope()
The account scope that you want your recommendations for.
- Returns:
- The account scope that you want your recommendations for.
-
hourlyCommitment
public final String hourlyCommitment()
The hourly commitment for the Savings Plans type.
- Returns:
- The hourly commitment for the Savings Plans type.
-
instanceFamily
public final String instanceFamily()
The instance family of the recommended Savings Plan.
- Returns:
- The instance family of the recommended Savings Plan.
-
paymentOption
public final String paymentOption()
The payment option for the commitment.
- Returns:
- The payment option for the commitment.
-
savingsPlansRegion
public final String savingsPlansRegion()
The Amazon Web Services Region of the commitment.
- Returns:
- The Amazon Web Services Region of the commitment.
-
term
public final String term()
The Savings Plans recommendation term in years.
- Returns:
- The Savings Plans recommendation term in years.
-
toBuilder
public Ec2InstanceSavingsPlansConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Ec2InstanceSavingsPlansConfiguration.Builder,Ec2InstanceSavingsPlansConfiguration>
-
builder
public static Ec2InstanceSavingsPlansConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends Ec2InstanceSavingsPlansConfiguration.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.
-
-