Interface EC2ResourceUtilization.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EC2ResourceUtilization.Builder,
,EC2ResourceUtilization> SdkBuilder<EC2ResourceUtilization.Builder,
,EC2ResourceUtilization> SdkPojo
- Enclosing class:
EC2ResourceUtilization
-
Method Summary
Modifier and TypeMethodDescriptiondefault EC2ResourceUtilization.Builder
diskResourceUtilization
(Consumer<DiskResourceUtilization.Builder> diskResourceUtilization) The field that contains a list of disk (local storage) metrics that are associated with the current instance.diskResourceUtilization
(DiskResourceUtilization diskResourceUtilization) The field that contains a list of disk (local storage) metrics that are associated with the current instance.default EC2ResourceUtilization.Builder
ebsResourceUtilization
(Consumer<EBSResourceUtilization.Builder> ebsResourceUtilization) The EBS field that contains a list of EBS metrics that are associated with the current instance.ebsResourceUtilization
(EBSResourceUtilization ebsResourceUtilization) The EBS field that contains a list of EBS metrics that are associated with the current instance.maxCpuUtilizationPercentage
(String maxCpuUtilizationPercentage) The maximum observed or expected CPU utilization of the instance.maxMemoryUtilizationPercentage
(String maxMemoryUtilizationPercentage) The maximum observed or expected memory utilization of the instance.maxStorageUtilizationPercentage
(String maxStorageUtilizationPercentage) The maximum observed or expected storage utilization of the instance.default EC2ResourceUtilization.Builder
networkResourceUtilization
(Consumer<NetworkResourceUtilization.Builder> networkResourceUtilization) The network field that contains a list of network metrics that are associated with the current instance.networkResourceUtilization
(NetworkResourceUtilization networkResourceUtilization) The network field that contains a list of network metrics that are associated with the current instance.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, sdkFieldNameToField, sdkFields
-
Method Details
-
maxCpuUtilizationPercentage
The maximum observed or expected CPU utilization of the instance.
- Parameters:
maxCpuUtilizationPercentage
- The maximum observed or expected CPU utilization of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxMemoryUtilizationPercentage
EC2ResourceUtilization.Builder maxMemoryUtilizationPercentage(String maxMemoryUtilizationPercentage) The maximum observed or expected memory utilization of the instance.
- Parameters:
maxMemoryUtilizationPercentage
- The maximum observed or expected memory utilization of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxStorageUtilizationPercentage
EC2ResourceUtilization.Builder maxStorageUtilizationPercentage(String maxStorageUtilizationPercentage) The maximum observed or expected storage utilization of the instance. This doesn't include EBS storage.
- Parameters:
maxStorageUtilizationPercentage
- The maximum observed or expected storage utilization of the instance. This doesn't include EBS storage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsResourceUtilization
EC2ResourceUtilization.Builder ebsResourceUtilization(EBSResourceUtilization ebsResourceUtilization) The EBS field that contains a list of EBS metrics that are associated with the current instance.
- Parameters:
ebsResourceUtilization
- The EBS field that contains a list of EBS metrics that are associated with the current instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsResourceUtilization
default EC2ResourceUtilization.Builder ebsResourceUtilization(Consumer<EBSResourceUtilization.Builder> ebsResourceUtilization) The EBS field that contains a list of EBS metrics that are associated with the current instance.
This is a convenience method that creates an instance of theEBSResourceUtilization.Builder
avoiding the need to create one manually viaEBSResourceUtilization.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toebsResourceUtilization(EBSResourceUtilization)
.- Parameters:
ebsResourceUtilization
- a consumer that will call methods onEBSResourceUtilization.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
diskResourceUtilization
EC2ResourceUtilization.Builder diskResourceUtilization(DiskResourceUtilization diskResourceUtilization) The field that contains a list of disk (local storage) metrics that are associated with the current instance.
- Parameters:
diskResourceUtilization
- The field that contains a list of disk (local storage) metrics that are associated with the current instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
diskResourceUtilization
default EC2ResourceUtilization.Builder diskResourceUtilization(Consumer<DiskResourceUtilization.Builder> diskResourceUtilization) The field that contains a list of disk (local storage) metrics that are associated with the current instance.
This is a convenience method that creates an instance of theDiskResourceUtilization.Builder
avoiding the need to create one manually viaDiskResourceUtilization.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todiskResourceUtilization(DiskResourceUtilization)
.- Parameters:
diskResourceUtilization
- a consumer that will call methods onDiskResourceUtilization.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkResourceUtilization
EC2ResourceUtilization.Builder networkResourceUtilization(NetworkResourceUtilization networkResourceUtilization) The network field that contains a list of network metrics that are associated with the current instance.
- Parameters:
networkResourceUtilization
- The network field that contains a list of network metrics that are associated with the current instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkResourceUtilization
default EC2ResourceUtilization.Builder networkResourceUtilization(Consumer<NetworkResourceUtilization.Builder> networkResourceUtilization) The network field that contains a list of network metrics that are associated with the current instance.
This is a convenience method that creates an instance of theNetworkResourceUtilization.Builder
avoiding the need to create one manually viaNetworkResourceUtilization.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkResourceUtilization(NetworkResourceUtilization)
.- Parameters:
networkResourceUtilization
- a consumer that will call methods onNetworkResourceUtilization.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-