Interface ClusterDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ClusterDetails.Builder,
,ClusterDetails> SdkBuilder<ClusterDetails.Builder,
,ClusterDetails> SdkPojo
- Enclosing class:
ClusterDetails
@Mutable
@NotThreadSafe
public static interface ClusterDetails.Builder
extends SdkPojo, CopyableBuilder<ClusterDetails.Builder,ClusterDetails>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ClusterDetails.Builder
clusterMetadata
(Consumer<ClusterMetadata.Builder> clusterMetadata) Sets the value of the ClusterMetadata property for this object.clusterMetadata
(ClusterMetadata clusterMetadata) Sets the value of the ClusterMetadata property for this object.The last timestamp when Amazon Inspector recorded the image in use in the task or pod in the cluster.runningUnitCount
(Long runningUnitCount) The number of tasks or pods where an image was running on the cluster.stoppedUnitCount
(Long stoppedUnitCount) The number of tasks or pods where an image was stopped on the cluster in the last 24 hours.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
-
clusterMetadata
Sets the value of the ClusterMetadata property for this object.- Parameters:
clusterMetadata
- The new value for the ClusterMetadata property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterMetadata
Sets the value of the ClusterMetadata property for this object. This is a convenience method that creates an instance of theClusterMetadata.Builder
avoiding the need to create one manually viaClusterMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclusterMetadata(ClusterMetadata)
.- Parameters:
clusterMetadata
- a consumer that will call methods onClusterMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastInUse
The last timestamp when Amazon Inspector recorded the image in use in the task or pod in the cluster.
- Parameters:
lastInUse
- The last timestamp when Amazon Inspector recorded the image in use in the task or pod in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runningUnitCount
The number of tasks or pods where an image was running on the cluster.
- Parameters:
runningUnitCount
- The number of tasks or pods where an image was running on the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stoppedUnitCount
The number of tasks or pods where an image was stopped on the cluster in the last 24 hours.
- Parameters:
stoppedUnitCount
- The number of tasks or pods where an image was stopped on the cluster in the last 24 hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-