Class InstancesCount

java.lang.Object
software.amazon.awssdk.services.opsworks.model.InstancesCount
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<InstancesCount.Builder,InstancesCount>

@Generated("software.amazon.awssdk:codegen") public final class InstancesCount extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstancesCount.Builder,InstancesCount>

Describes how many instances a stack has for each status.

See Also:
  • Method Details

    • assigning

      public final Integer assigning()

      The number of instances in the Assigning state.

      Returns:
      The number of instances in the Assigning state.
    • booting

      public final Integer booting()

      The number of instances with booting status.

      Returns:
      The number of instances with booting status.
    • connectionLost

      public final Integer connectionLost()

      The number of instances with connection_lost status.

      Returns:
      The number of instances with connection_lost status.
    • deregistering

      public final Integer deregistering()

      The number of instances in the Deregistering state.

      Returns:
      The number of instances in the Deregistering state.
    • online

      public final Integer online()

      The number of instances with online status.

      Returns:
      The number of instances with online status.
    • pending

      public final Integer pending()

      The number of instances with pending status.

      Returns:
      The number of instances with pending status.
    • rebooting

      public final Integer rebooting()

      The number of instances with rebooting status.

      Returns:
      The number of instances with rebooting status.
    • registered

      public final Integer registered()

      The number of instances in the Registered state.

      Returns:
      The number of instances in the Registered state.
    • registering

      public final Integer registering()

      The number of instances in the Registering state.

      Returns:
      The number of instances in the Registering state.
    • requested

      public final Integer requested()

      The number of instances with requested status.

      Returns:
      The number of instances with requested status.
    • runningSetup

      public final Integer runningSetup()

      The number of instances with running_setup status.

      Returns:
      The number of instances with running_setup status.
    • setupFailed

      public final Integer setupFailed()

      The number of instances with setup_failed status.

      Returns:
      The number of instances with setup_failed status.
    • shuttingDown

      public final Integer shuttingDown()

      The number of instances with shutting_down status.

      Returns:
      The number of instances with shutting_down status.
    • startFailed

      public final Integer startFailed()

      The number of instances with start_failed status.

      Returns:
      The number of instances with start_failed status.
    • stopFailed

      public final Integer stopFailed()

      The number of instances with stop_failed status.

      Returns:
      The number of instances with stop_failed status.
    • stopped

      public final Integer stopped()

      The number of instances with stopped status.

      Returns:
      The number of instances with stopped status.
    • stopping

      public final Integer stopping()

      The number of instances with stopping status.

      Returns:
      The number of instances with stopping status.
    • terminated

      public final Integer terminated()

      The number of instances with terminated status.

      Returns:
      The number of instances with terminated status.
    • terminating

      public final Integer terminating()

      The number of instances with terminating status.

      Returns:
      The number of instances with terminating status.
    • unassigning

      public final Integer unassigning()

      The number of instances in the Unassigning state.

      Returns:
      The number of instances in the Unassigning state.
    • toBuilder

      public InstancesCount.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<InstancesCount.Builder,InstancesCount>
      Returns:
      a builder for type T
    • builder

      public static InstancesCount.Builder builder()
    • serializableBuilderClass

      public static Class<? extends InstancesCount.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.