/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.ecs.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An object representing the health status of the container instance. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ContainerInstanceHealthStatus implements Serializable, Cloneable, StructuredPojo { /** ** The overall health status of the container instance. This is an aggregate status of all container instance health * checks. *
*/ private String overallStatus; /** ** An array of objects representing the details of the container instance health status. *
*/ private com.amazonaws.internal.SdkInternalList* The overall health status of the container instance. This is an aggregate status of all container instance health * checks. *
* * @param overallStatus * The overall health status of the container instance. This is an aggregate status of all container instance * health checks. * @see InstanceHealthCheckState */ public void setOverallStatus(String overallStatus) { this.overallStatus = overallStatus; } /** ** The overall health status of the container instance. This is an aggregate status of all container instance health * checks. *
* * @return The overall health status of the container instance. This is an aggregate status of all container * instance health checks. * @see InstanceHealthCheckState */ public String getOverallStatus() { return this.overallStatus; } /** ** The overall health status of the container instance. This is an aggregate status of all container instance health * checks. *
* * @param overallStatus * The overall health status of the container instance. This is an aggregate status of all container instance * health checks. * @return Returns a reference to this object so that method calls can be chained together. * @see InstanceHealthCheckState */ public ContainerInstanceHealthStatus withOverallStatus(String overallStatus) { setOverallStatus(overallStatus); return this; } /** ** The overall health status of the container instance. This is an aggregate status of all container instance health * checks. *
* * @param overallStatus * The overall health status of the container instance. This is an aggregate status of all container instance * health checks. * @return Returns a reference to this object so that method calls can be chained together. * @see InstanceHealthCheckState */ public ContainerInstanceHealthStatus withOverallStatus(InstanceHealthCheckState overallStatus) { this.overallStatus = overallStatus.toString(); return this; } /** ** An array of objects representing the details of the container instance health status. *
* * @return An array of objects representing the details of the container instance health status. */ public java.util.List* An array of objects representing the details of the container instance health status. *
* * @param details * An array of objects representing the details of the container instance health status. */ public void setDetails(java.util.Collection* An array of objects representing the details of the container instance health status. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDetails(java.util.Collection)} or {@link #withDetails(java.util.Collection)} if you want to override * the existing values. *
* * @param details * An array of objects representing the details of the container instance health status. * @return Returns a reference to this object so that method calls can be chained together. */ public ContainerInstanceHealthStatus withDetails(InstanceHealthCheckResult... details) { if (this.details == null) { setDetails(new com.amazonaws.internal.SdkInternalList* An array of objects representing the details of the container instance health status. *
* * @param details * An array of objects representing the details of the container instance health status. * @return Returns a reference to this object so that method calls can be chained together. */ public ContainerInstanceHealthStatus withDetails(java.util.Collection