/* * 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.elasticbeanstalk.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* See the example below to learn how to create a request body. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeEnvironmentHealthRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** Specify the environment by name. *
** You must specify either this or an EnvironmentName, or both. *
*/ private String environmentName; /** ** Specify the environment by ID. *
** You must specify either this or an EnvironmentName, or both. *
*/ private String environmentId; /** *
* Specify the response elements to return. To retrieve all attributes, set to All
. If no attribute
* names are specified, returns the name of the environment.
*
* Specify the environment by name. *
** You must specify either this or an EnvironmentName, or both. *
* * @param environmentName * Specify the environment by name. ** You must specify either this or an EnvironmentName, or both. */ public void setEnvironmentName(String environmentName) { this.environmentName = environmentName; } /** *
* Specify the environment by name. *
** You must specify either this or an EnvironmentName, or both. *
* * @return Specify the environment by name. ** You must specify either this or an EnvironmentName, or both. */ public String getEnvironmentName() { return this.environmentName; } /** *
* Specify the environment by name. *
** You must specify either this or an EnvironmentName, or both. *
* * @param environmentName * Specify the environment by name. ** You must specify either this or an EnvironmentName, or both. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEnvironmentHealthRequest withEnvironmentName(String environmentName) { setEnvironmentName(environmentName); return this; } /** *
* Specify the environment by ID. *
** You must specify either this or an EnvironmentName, or both. *
* * @param environmentId * Specify the environment by ID. ** You must specify either this or an EnvironmentName, or both. */ public void setEnvironmentId(String environmentId) { this.environmentId = environmentId; } /** *
* Specify the environment by ID. *
** You must specify either this or an EnvironmentName, or both. *
* * @return Specify the environment by ID. ** You must specify either this or an EnvironmentName, or both. */ public String getEnvironmentId() { return this.environmentId; } /** *
* Specify the environment by ID. *
** You must specify either this or an EnvironmentName, or both. *
* * @param environmentId * Specify the environment by ID. ** You must specify either this or an EnvironmentName, or both. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeEnvironmentHealthRequest withEnvironmentId(String environmentId) { setEnvironmentId(environmentId); return this; } /** *
* Specify the response elements to return. To retrieve all attributes, set to All
. If no attribute
* names are specified, returns the name of the environment.
*
All
. If no
* attribute names are specified, returns the name of the environment.
* @see EnvironmentHealthAttribute
*/
public java.util.List
* Specify the response elements to return. To retrieve all attributes, set to All
. If no attribute
* names are specified, returns the name of the environment.
*
All
. If no
* attribute names are specified, returns the name of the environment.
* @see EnvironmentHealthAttribute
*/
public void setAttributeNames(java.util.Collection
* Specify the response elements to return. To retrieve all attributes, set to All
. If no attribute
* names are specified, returns the name of the environment.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAttributeNames(java.util.Collection)} or {@link #withAttributeNames(java.util.Collection)} if you want * to override the existing values. *
* * @param attributeNames * Specify the response elements to return. To retrieve all attributes, set toAll
. If no
* attribute names are specified, returns the name of the environment.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EnvironmentHealthAttribute
*/
public DescribeEnvironmentHealthRequest withAttributeNames(String... attributeNames) {
if (this.attributeNames == null) {
setAttributeNames(new com.amazonaws.internal.SdkInternalList
* Specify the response elements to return. To retrieve all attributes, set to All
. If no attribute
* names are specified, returns the name of the environment.
*
All
. If no
* attribute names are specified, returns the name of the environment.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EnvironmentHealthAttribute
*/
public DescribeEnvironmentHealthRequest withAttributeNames(java.util.Collection
* Specify the response elements to return. To retrieve all attributes, set to All
. If no attribute
* names are specified, returns the name of the environment.
*
All
. If no
* attribute names are specified, returns the name of the environment.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EnvironmentHealthAttribute
*/
public DescribeEnvironmentHealthRequest withAttributeNames(EnvironmentHealthAttribute... attributeNames) {
com.amazonaws.internal.SdkInternalList