@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Ec2RecommendationsExportPreferences extends Object implements Serializable, Cloneable, StructuredPojo
Indicates that the exported data must include EC2 instance type matches for on-premises servers that are discovered through Amazon Web Services Application Discovery Service.
Constructor and Description |
---|
Ec2RecommendationsExportPreferences() |
Modifier and Type | Method and Description |
---|---|
Ec2RecommendationsExportPreferences |
clone() |
boolean |
equals(Object obj) |
UsageMetricBasis |
getCpuPerformanceMetricBasis()
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
|
Boolean |
getEnabled()
If set to true, the export preferences is set to
Ec2RecommendationsExportPreferences . |
List<String> |
getExcludedInstanceTypes()
An array of instance types to exclude from recommendations.
|
String |
getPreferredRegion()
The target Amazon Web Services Region for the recommendations.
|
UsageMetricBasis |
getRamPerformanceMetricBasis()
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
|
ReservedInstanceOptions |
getReservedInstanceOptions()
The contract type for a reserved instance.
|
String |
getTenancy()
The target tenancy to use for your recommended EC2 instances.
|
int |
hashCode() |
Boolean |
isEnabled()
If set to true, the export preferences is set to
Ec2RecommendationsExportPreferences . |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCpuPerformanceMetricBasis(UsageMetricBasis cpuPerformanceMetricBasis)
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
|
void |
setEnabled(Boolean enabled)
If set to true, the export preferences is set to
Ec2RecommendationsExportPreferences . |
void |
setExcludedInstanceTypes(Collection<String> excludedInstanceTypes)
An array of instance types to exclude from recommendations.
|
void |
setPreferredRegion(String preferredRegion)
The target Amazon Web Services Region for the recommendations.
|
void |
setRamPerformanceMetricBasis(UsageMetricBasis ramPerformanceMetricBasis)
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
|
void |
setReservedInstanceOptions(ReservedInstanceOptions reservedInstanceOptions)
The contract type for a reserved instance.
|
void |
setTenancy(String tenancy)
The target tenancy to use for your recommended EC2 instances.
|
String |
toString()
Returns a string representation of this object.
|
Ec2RecommendationsExportPreferences |
withCpuPerformanceMetricBasis(UsageMetricBasis cpuPerformanceMetricBasis)
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
|
Ec2RecommendationsExportPreferences |
withEnabled(Boolean enabled)
If set to true, the export preferences is set to
Ec2RecommendationsExportPreferences . |
Ec2RecommendationsExportPreferences |
withExcludedInstanceTypes(Collection<String> excludedInstanceTypes)
An array of instance types to exclude from recommendations.
|
Ec2RecommendationsExportPreferences |
withExcludedInstanceTypes(String... excludedInstanceTypes)
An array of instance types to exclude from recommendations.
|
Ec2RecommendationsExportPreferences |
withPreferredRegion(String preferredRegion)
The target Amazon Web Services Region for the recommendations.
|
Ec2RecommendationsExportPreferences |
withRamPerformanceMetricBasis(UsageMetricBasis ramPerformanceMetricBasis)
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
|
Ec2RecommendationsExportPreferences |
withReservedInstanceOptions(ReservedInstanceOptions reservedInstanceOptions)
The contract type for a reserved instance.
|
Ec2RecommendationsExportPreferences |
withTenancy(String tenancy)
The target tenancy to use for your recommended EC2 instances.
|
Ec2RecommendationsExportPreferences |
withTenancy(Tenancy tenancy)
The target tenancy to use for your recommended EC2 instances.
|
public void setEnabled(Boolean enabled)
If set to true, the export preferences is set to Ec2RecommendationsExportPreferences
.
enabled
- If set to true, the export preferences is set to Ec2RecommendationsExportPreferences
.public Boolean getEnabled()
If set to true, the export preferences is set to Ec2RecommendationsExportPreferences
.
Ec2RecommendationsExportPreferences
.public Ec2RecommendationsExportPreferences withEnabled(Boolean enabled)
If set to true, the export preferences is set to Ec2RecommendationsExportPreferences
.
enabled
- If set to true, the export preferences is set to Ec2RecommendationsExportPreferences
.public Boolean isEnabled()
If set to true, the export preferences is set to Ec2RecommendationsExportPreferences
.
Ec2RecommendationsExportPreferences
.public void setCpuPerformanceMetricBasis(UsageMetricBasis cpuPerformanceMetricBasis)
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
cpuPerformanceMetricBasis
- The recommended EC2 instance type that matches the CPU usage metric of server performance data.public UsageMetricBasis getCpuPerformanceMetricBasis()
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
public Ec2RecommendationsExportPreferences withCpuPerformanceMetricBasis(UsageMetricBasis cpuPerformanceMetricBasis)
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
cpuPerformanceMetricBasis
- The recommended EC2 instance type that matches the CPU usage metric of server performance data.public void setRamPerformanceMetricBasis(UsageMetricBasis ramPerformanceMetricBasis)
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
ramPerformanceMetricBasis
- The recommended EC2 instance type that matches the Memory usage metric of server performance data.public UsageMetricBasis getRamPerformanceMetricBasis()
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
public Ec2RecommendationsExportPreferences withRamPerformanceMetricBasis(UsageMetricBasis ramPerformanceMetricBasis)
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
ramPerformanceMetricBasis
- The recommended EC2 instance type that matches the Memory usage metric of server performance data.public void setTenancy(String tenancy)
The target tenancy to use for your recommended EC2 instances.
tenancy
- The target tenancy to use for your recommended EC2 instances.Tenancy
public String getTenancy()
The target tenancy to use for your recommended EC2 instances.
Tenancy
public Ec2RecommendationsExportPreferences withTenancy(String tenancy)
The target tenancy to use for your recommended EC2 instances.
tenancy
- The target tenancy to use for your recommended EC2 instances.Tenancy
public Ec2RecommendationsExportPreferences withTenancy(Tenancy tenancy)
The target tenancy to use for your recommended EC2 instances.
tenancy
- The target tenancy to use for your recommended EC2 instances.Tenancy
public List<String> getExcludedInstanceTypes()
An array of instance types to exclude from recommendations.
public void setExcludedInstanceTypes(Collection<String> excludedInstanceTypes)
An array of instance types to exclude from recommendations.
excludedInstanceTypes
- An array of instance types to exclude from recommendations.public Ec2RecommendationsExportPreferences withExcludedInstanceTypes(String... excludedInstanceTypes)
An array of instance types to exclude from recommendations.
NOTE: This method appends the values to the existing list (if any). Use
setExcludedInstanceTypes(java.util.Collection)
or
withExcludedInstanceTypes(java.util.Collection)
if you want to override the existing values.
excludedInstanceTypes
- An array of instance types to exclude from recommendations.public Ec2RecommendationsExportPreferences withExcludedInstanceTypes(Collection<String> excludedInstanceTypes)
An array of instance types to exclude from recommendations.
excludedInstanceTypes
- An array of instance types to exclude from recommendations.public void setPreferredRegion(String preferredRegion)
The target Amazon Web Services Region for the recommendations. You can use any of the Region codes available for the chosen service, as listed in Amazon Web Services service endpoints in the Amazon Web Services General Reference.
preferredRegion
- The target Amazon Web Services Region for the recommendations. You can use any of the Region codes
available for the chosen service, as listed in Amazon Web Services service endpoints
in the Amazon Web Services General Reference.public String getPreferredRegion()
The target Amazon Web Services Region for the recommendations. You can use any of the Region codes available for the chosen service, as listed in Amazon Web Services service endpoints in the Amazon Web Services General Reference.
public Ec2RecommendationsExportPreferences withPreferredRegion(String preferredRegion)
The target Amazon Web Services Region for the recommendations. You can use any of the Region codes available for the chosen service, as listed in Amazon Web Services service endpoints in the Amazon Web Services General Reference.
preferredRegion
- The target Amazon Web Services Region for the recommendations. You can use any of the Region codes
available for the chosen service, as listed in Amazon Web Services service endpoints
in the Amazon Web Services General Reference.public void setReservedInstanceOptions(ReservedInstanceOptions reservedInstanceOptions)
The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.
reservedInstanceOptions
- The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.public ReservedInstanceOptions getReservedInstanceOptions()
The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.
public Ec2RecommendationsExportPreferences withReservedInstanceOptions(ReservedInstanceOptions reservedInstanceOptions)
The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.
reservedInstanceOptions
- The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.public String toString()
toString
in class Object
Object.toString()
public Ec2RecommendationsExportPreferences clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.