/* * 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 DescribeTaskSetsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets exist * in. *
*/ private String cluster; /** ** The short name or full Amazon Resource Name (ARN) of the service that the task sets exist in. *
*/ private String service; /** ** The ID or full Amazon Resource Name (ARN) of task sets to describe. *
*/ private com.amazonaws.internal.SdkInternalList
* Specifies whether to see the resource tags for the task set. If TAGS
is specified, the tags are
* included in the response. If this field is omitted, tags aren't included in the response.
*
* The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets exist * in. *
* * @param cluster * The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets * exist in. */ public void setCluster(String cluster) { this.cluster = cluster; } /** ** The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets exist * in. *
* * @return The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task * sets exist in. */ public String getCluster() { return this.cluster; } /** ** The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets exist * in. *
* * @param cluster * The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service that the task sets * exist in. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTaskSetsRequest withCluster(String cluster) { setCluster(cluster); return this; } /** ** The short name or full Amazon Resource Name (ARN) of the service that the task sets exist in. *
* * @param service * The short name or full Amazon Resource Name (ARN) of the service that the task sets exist in. */ public void setService(String service) { this.service = service; } /** ** The short name or full Amazon Resource Name (ARN) of the service that the task sets exist in. *
* * @return The short name or full Amazon Resource Name (ARN) of the service that the task sets exist in. */ public String getService() { return this.service; } /** ** The short name or full Amazon Resource Name (ARN) of the service that the task sets exist in. *
* * @param service * The short name or full Amazon Resource Name (ARN) of the service that the task sets exist in. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTaskSetsRequest withService(String service) { setService(service); return this; } /** ** The ID or full Amazon Resource Name (ARN) of task sets to describe. *
* * @return The ID or full Amazon Resource Name (ARN) of task sets to describe. */ public java.util.List* The ID or full Amazon Resource Name (ARN) of task sets to describe. *
* * @param taskSets * The ID or full Amazon Resource Name (ARN) of task sets to describe. */ public void setTaskSets(java.util.Collection* The ID or full Amazon Resource Name (ARN) of task sets to describe. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTaskSets(java.util.Collection)} or {@link #withTaskSets(java.util.Collection)} if you want to override * the existing values. *
* * @param taskSets * The ID or full Amazon Resource Name (ARN) of task sets to describe. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTaskSetsRequest withTaskSets(String... taskSets) { if (this.taskSets == null) { setTaskSets(new com.amazonaws.internal.SdkInternalList* The ID or full Amazon Resource Name (ARN) of task sets to describe. *
* * @param taskSets * The ID or full Amazon Resource Name (ARN) of task sets to describe. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTaskSetsRequest withTaskSets(java.util.Collection
* Specifies whether to see the resource tags for the task set. If TAGS
is specified, the tags are
* included in the response. If this field is omitted, tags aren't included in the response.
*
TAGS
is specified, the tags
* are included in the response. If this field is omitted, tags aren't included in the response.
* @see TaskSetField
*/
public java.util.List
* Specifies whether to see the resource tags for the task set. If TAGS
is specified, the tags are
* included in the response. If this field is omitted, tags aren't included in the response.
*
TAGS
is specified, the tags
* are included in the response. If this field is omitted, tags aren't included in the response.
* @see TaskSetField
*/
public void setInclude(java.util.Collection
* Specifies whether to see the resource tags for the task set. If TAGS
is specified, the tags are
* included in the response. If this field is omitted, tags aren't included in the response.
*
* 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. *
* * @param include * Specifies whether to see the resource tags for the task set. IfTAGS
is specified, the tags
* are included in the response. If this field is omitted, tags aren't included in the response.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TaskSetField
*/
public DescribeTaskSetsRequest withInclude(String... include) {
if (this.include == null) {
setInclude(new com.amazonaws.internal.SdkInternalList
* Specifies whether to see the resource tags for the task set. If TAGS
is specified, the tags are
* included in the response. If this field is omitted, tags aren't included in the response.
*
TAGS
is specified, the tags
* are included in the response. If this field is omitted, tags aren't included in the response.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TaskSetField
*/
public DescribeTaskSetsRequest withInclude(java.util.Collection
* Specifies whether to see the resource tags for the task set. If TAGS
is specified, the tags are
* included in the response. If this field is omitted, tags aren't included in the response.
*
TAGS
is specified, the tags
* are included in the response. If this field is omitted, tags aren't included in the response.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TaskSetField
*/
public DescribeTaskSetsRequest withInclude(TaskSetField... include) {
com.amazonaws.internal.SdkInternalList