/* * 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.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeClustersRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not specify a * cluster, the default cluster is assumed. *
*/ private com.amazonaws.internal.SdkInternalList* Determines whether to include additional information about the clusters in the response. If this field is * omitted, this information isn't included. *
*
* If ATTACHMENTS
is specified, the attachments for the container instances or tasks within the cluster
* are included, for example the capacity providers.
*
* If SETTINGS
is specified, the settings for the cluster are included.
*
* If CONFIGURATIONS
is specified, the configuration for the cluster is included.
*
* If STATISTICS
is specified, the task and service count is included, separated by launch type.
*
* If TAGS
is specified, the metadata tags associated with the cluster are included.
*
* A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not specify a * cluster, the default cluster is assumed. *
* * @return A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not * specify a cluster, the default cluster is assumed. */ public java.util.List* A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not specify a * cluster, the default cluster is assumed. *
* * @param clusters * A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not * specify a cluster, the default cluster is assumed. */ public void setClusters(java.util.Collection* A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not specify a * cluster, the default cluster is assumed. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setClusters(java.util.Collection)} or {@link #withClusters(java.util.Collection)} if you want to override * the existing values. *
* * @param clusters * A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not * specify a cluster, the default cluster is assumed. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeClustersRequest withClusters(String... clusters) { if (this.clusters == null) { setClusters(new com.amazonaws.internal.SdkInternalList* A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not specify a * cluster, the default cluster is assumed. *
* * @param clusters * A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not * specify a cluster, the default cluster is assumed. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeClustersRequest withClusters(java.util.Collection* Determines whether to include additional information about the clusters in the response. If this field is * omitted, this information isn't included. *
*
* If ATTACHMENTS
is specified, the attachments for the container instances or tasks within the cluster
* are included, for example the capacity providers.
*
* If SETTINGS
is specified, the settings for the cluster are included.
*
* If CONFIGURATIONS
is specified, the configuration for the cluster is included.
*
* If STATISTICS
is specified, the task and service count is included, separated by launch type.
*
* If TAGS
is specified, the metadata tags associated with the cluster are included.
*
* If ATTACHMENTS
is specified, the attachments for the container instances or tasks within the
* cluster are included, for example the capacity providers.
*
* If SETTINGS
is specified, the settings for the cluster are included.
*
* If CONFIGURATIONS
is specified, the configuration for the cluster is included.
*
* If STATISTICS
is specified, the task and service count is included, separated by launch
* type.
*
* If
* Determines whether to include additional information about the clusters in the response. If this field is
* omitted, this information isn't included.
*
* If
* If
* If
* If
* If TAGS
is specified, the metadata tags associated with the cluster are included.
* @see ClusterField
*/
public java.util.ListATTACHMENTS
is specified, the attachments for the container instances or tasks within the cluster
* are included, for example the capacity providers.
* SETTINGS
is specified, the settings for the cluster are included.
* CONFIGURATIONS
is specified, the configuration for the cluster is included.
* STATISTICS
is specified, the task and service count is included, separated by launch type.
* TAGS
is specified, the metadata tags associated with the cluster are included.
*
* If ATTACHMENTS
is specified, the attachments for the container instances or tasks within the
* cluster are included, for example the capacity providers.
*
* If SETTINGS
is specified, the settings for the cluster are included.
*
* If CONFIGURATIONS
is specified, the configuration for the cluster is included.
*
* If STATISTICS
is specified, the task and service count is included, separated by launch type.
*
* If
* Determines whether to include additional information about the clusters in the response. If this field is
* omitted, this information isn't included.
*
* If
* If
* If
* If
* If
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setInclude(java.util.Collection)} or {@link #withInclude(java.util.Collection)} if you want to override
* the existing values.
* TAGS
is specified, the metadata tags associated with the cluster are included.
* @see ClusterField
*/
public void setInclude(java.util.CollectionATTACHMENTS
is specified, the attachments for the container instances or tasks within the cluster
* are included, for example the capacity providers.
* SETTINGS
is specified, the settings for the cluster are included.
* CONFIGURATIONS
is specified, the configuration for the cluster is included.
* STATISTICS
is specified, the task and service count is included, separated by launch type.
* TAGS
is specified, the metadata tags associated with the cluster are included.
*
* If ATTACHMENTS
is specified, the attachments for the container instances or tasks within the
* cluster are included, for example the capacity providers.
*
* If SETTINGS
is specified, the settings for the cluster are included.
*
* If CONFIGURATIONS
is specified, the configuration for the cluster is included.
*
* If STATISTICS
is specified, the task and service count is included, separated by launch type.
*
* If
* Determines whether to include additional information about the clusters in the response. If this field is
* omitted, this information isn't included.
*
* If
* If
* If
* If
* If TAGS
is specified, the metadata tags associated with the cluster are included.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ClusterField
*/
public DescribeClustersRequest withInclude(String... include) {
if (this.include == null) {
setInclude(new com.amazonaws.internal.SdkInternalListATTACHMENTS
is specified, the attachments for the container instances or tasks within the cluster
* are included, for example the capacity providers.
* SETTINGS
is specified, the settings for the cluster are included.
* CONFIGURATIONS
is specified, the configuration for the cluster is included.
* STATISTICS
is specified, the task and service count is included, separated by launch type.
* TAGS
is specified, the metadata tags associated with the cluster are included.
*
* If ATTACHMENTS
is specified, the attachments for the container instances or tasks within the
* cluster are included, for example the capacity providers.
*
* If SETTINGS
is specified, the settings for the cluster are included.
*
* If CONFIGURATIONS
is specified, the configuration for the cluster is included.
*
* If STATISTICS
is specified, the task and service count is included, separated by launch type.
*
* If
* Determines whether to include additional information about the clusters in the response. If this field is
* omitted, this information isn't included.
*
* If
* If
* If
* If
* If TAGS
is specified, the metadata tags associated with the cluster are included.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ClusterField
*/
public DescribeClustersRequest withInclude(java.util.CollectionATTACHMENTS
is specified, the attachments for the container instances or tasks within the cluster
* are included, for example the capacity providers.
* SETTINGS
is specified, the settings for the cluster are included.
* CONFIGURATIONS
is specified, the configuration for the cluster is included.
* STATISTICS
is specified, the task and service count is included, separated by launch type.
* TAGS
is specified, the metadata tags associated with the cluster are included.
*
* If ATTACHMENTS
is specified, the attachments for the container instances or tasks within the
* cluster are included, for example the capacity providers.
*
* If SETTINGS
is specified, the settings for the cluster are included.
*
* If CONFIGURATIONS
is specified, the configuration for the cluster is included.
*
* If STATISTICS
is specified, the task and service count is included, separated by launch type.
*
* If TAGS
is specified, the metadata tags associated with the cluster are included.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ClusterField
*/
public DescribeClustersRequest withInclude(ClusterField... include) {
com.amazonaws.internal.SdkInternalList