Interface ClusterDetails.Builder

  • Method Details

    • clusterMetadata

      ClusterDetails.Builder clusterMetadata(ClusterMetadata 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

      default ClusterDetails.Builder clusterMetadata(Consumer<ClusterMetadata.Builder> clusterMetadata)
      Sets the value of the ClusterMetadata property for this object. This is a convenience method that creates an instance of the ClusterMetadata.Builder avoiding the need to create one manually via ClusterMetadata.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to clusterMetadata(ClusterMetadata).

      Parameters:
      clusterMetadata - a consumer that will call methods on ClusterMetadata.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lastInUse

      ClusterDetails.Builder lastInUse(Instant 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

      ClusterDetails.Builder runningUnitCount(Long 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

      ClusterDetails.Builder stoppedUnitCount(Long 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.