Interface Ec2RecommendationsExportPreferences.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Ec2RecommendationsExportPreferences.Builder,Ec2RecommendationsExportPreferences>,SdkBuilder<Ec2RecommendationsExportPreferences.Builder,Ec2RecommendationsExportPreferences>,SdkPojo
- Enclosing class:
- Ec2RecommendationsExportPreferences
public static interface Ec2RecommendationsExportPreferences.Builder extends SdkPojo, CopyableBuilder<Ec2RecommendationsExportPreferences.Builder,Ec2RecommendationsExportPreferences>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Ec2RecommendationsExportPreferences.BuildercpuPerformanceMetricBasis(Consumer<UsageMetricBasis.Builder> cpuPerformanceMetricBasis)The recommended EC2 instance type that matches the CPU usage metric of server performance data.Ec2RecommendationsExportPreferences.BuildercpuPerformanceMetricBasis(UsageMetricBasis cpuPerformanceMetricBasis)The recommended EC2 instance type that matches the CPU usage metric of server performance data.Ec2RecommendationsExportPreferences.Builderenabled(Boolean enabled)If set to true, the export preferences is set toEc2RecommendationsExportPreferences.Ec2RecommendationsExportPreferences.BuilderexcludedInstanceTypes(String... excludedInstanceTypes)An array of instance types to exclude from recommendations.Ec2RecommendationsExportPreferences.BuilderexcludedInstanceTypes(Collection<String> excludedInstanceTypes)An array of instance types to exclude from recommendations.Ec2RecommendationsExportPreferences.BuilderpreferredRegion(String preferredRegion)The target Amazon Web Services Region for the recommendations.default Ec2RecommendationsExportPreferences.BuilderramPerformanceMetricBasis(Consumer<UsageMetricBasis.Builder> ramPerformanceMetricBasis)The recommended EC2 instance type that matches the Memory usage metric of server performance data.Ec2RecommendationsExportPreferences.BuilderramPerformanceMetricBasis(UsageMetricBasis ramPerformanceMetricBasis)The recommended EC2 instance type that matches the Memory usage metric of server performance data.default Ec2RecommendationsExportPreferences.BuilderreservedInstanceOptions(Consumer<ReservedInstanceOptions.Builder> reservedInstanceOptions)The contract type for a reserved instance.Ec2RecommendationsExportPreferences.BuilderreservedInstanceOptions(ReservedInstanceOptions reservedInstanceOptions)The contract type for a reserved instance.Ec2RecommendationsExportPreferences.Buildertenancy(String tenancy)The target tenancy to use for your recommended EC2 instances.Ec2RecommendationsExportPreferences.Buildertenancy(Tenancy tenancy)The target tenancy to use for your recommended EC2 instances.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
enabled
Ec2RecommendationsExportPreferences.Builder enabled(Boolean enabled)
If set to true, the export preferences is set to
Ec2RecommendationsExportPreferences.- Parameters:
enabled- If set to true, the export preferences is set toEc2RecommendationsExportPreferences.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpuPerformanceMetricBasis
Ec2RecommendationsExportPreferences.Builder cpuPerformanceMetricBasis(UsageMetricBasis cpuPerformanceMetricBasis)
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
- Parameters:
cpuPerformanceMetricBasis- The recommended EC2 instance type that matches the CPU usage metric of server performance data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpuPerformanceMetricBasis
default Ec2RecommendationsExportPreferences.Builder cpuPerformanceMetricBasis(Consumer<UsageMetricBasis.Builder> cpuPerformanceMetricBasis)
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
This is a convenience method that creates an instance of theUsageMetricBasis.Builderavoiding the need to create one manually viaUsageMetricBasis.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocpuPerformanceMetricBasis(UsageMetricBasis).- Parameters:
cpuPerformanceMetricBasis- a consumer that will call methods onUsageMetricBasis.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
cpuPerformanceMetricBasis(UsageMetricBasis)
-
ramPerformanceMetricBasis
Ec2RecommendationsExportPreferences.Builder ramPerformanceMetricBasis(UsageMetricBasis ramPerformanceMetricBasis)
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
- Parameters:
ramPerformanceMetricBasis- The recommended EC2 instance type that matches the Memory usage metric of server performance data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ramPerformanceMetricBasis
default Ec2RecommendationsExportPreferences.Builder ramPerformanceMetricBasis(Consumer<UsageMetricBasis.Builder> ramPerformanceMetricBasis)
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
This is a convenience method that creates an instance of theUsageMetricBasis.Builderavoiding the need to create one manually viaUsageMetricBasis.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toramPerformanceMetricBasis(UsageMetricBasis).- Parameters:
ramPerformanceMetricBasis- a consumer that will call methods onUsageMetricBasis.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ramPerformanceMetricBasis(UsageMetricBasis)
-
tenancy
Ec2RecommendationsExportPreferences.Builder tenancy(String tenancy)
The target tenancy to use for your recommended EC2 instances.
-
tenancy
Ec2RecommendationsExportPreferences.Builder tenancy(Tenancy tenancy)
The target tenancy to use for your recommended EC2 instances.
-
excludedInstanceTypes
Ec2RecommendationsExportPreferences.Builder excludedInstanceTypes(Collection<String> excludedInstanceTypes)
An array of instance types to exclude from recommendations.
- Parameters:
excludedInstanceTypes- An array of instance types to exclude from recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedInstanceTypes
Ec2RecommendationsExportPreferences.Builder excludedInstanceTypes(String... excludedInstanceTypes)
An array of instance types to exclude from recommendations.
- Parameters:
excludedInstanceTypes- An array of instance types to exclude from recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredRegion
Ec2RecommendationsExportPreferences.Builder preferredRegion(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedInstanceOptions
Ec2RecommendationsExportPreferences.Builder reservedInstanceOptions(ReservedInstanceOptions reservedInstanceOptions)
The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.
- Parameters:
reservedInstanceOptions- The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedInstanceOptions
default Ec2RecommendationsExportPreferences.Builder reservedInstanceOptions(Consumer<ReservedInstanceOptions.Builder> reservedInstanceOptions)
The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.
This is a convenience method that creates an instance of theReservedInstanceOptions.Builderavoiding the need to create one manually viaReservedInstanceOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreservedInstanceOptions(ReservedInstanceOptions).- Parameters:
reservedInstanceOptions- a consumer that will call methods onReservedInstanceOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
reservedInstanceOptions(ReservedInstanceOptions)
-
-