/* * 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 PutAttributesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply attributes. * If you do not specify a cluster, the default cluster is assumed. *
*/ private String cluster; /** ** The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. You can * specify up to 10 attributes in a single call. *
*/ private com.amazonaws.internal.SdkInternalList* The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply attributes. * If you do not specify a cluster, the default cluster is assumed. *
* * @param cluster * The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply * attributes. If you do not specify a cluster, the default cluster is assumed. */ public void setCluster(String cluster) { this.cluster = cluster; } /** ** The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply attributes. * If you do not specify a cluster, the default cluster is assumed. *
* * @return The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply * attributes. If you do not specify a cluster, the default cluster is assumed. */ public String getCluster() { return this.cluster; } /** ** The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply attributes. * If you do not specify a cluster, the default cluster is assumed. *
* * @param cluster * The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply * attributes. 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 PutAttributesRequest withCluster(String cluster) { setCluster(cluster); return this; } /** ** The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. You can * specify up to 10 attributes in a single call. *
* * @return The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. * You can specify up to 10 attributes in a single call. */ public java.util.List* The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. You can * specify up to 10 attributes in a single call. *
* * @param attributes * The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. * You can specify up to 10 attributes in a single call. */ public void setAttributes(java.util.Collection* The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. You can * specify up to 10 attributes in a single call. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAttributes(java.util.Collection)} or {@link #withAttributes(java.util.Collection)} if you want to * override the existing values. *
* * @param attributes * The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. * You can specify up to 10 attributes in a single call. * @return Returns a reference to this object so that method calls can be chained together. */ public PutAttributesRequest withAttributes(Attribute... attributes) { if (this.attributes == null) { setAttributes(new com.amazonaws.internal.SdkInternalList* The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. You can * specify up to 10 attributes in a single call. *
* * @param attributes * The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. * You can specify up to 10 attributes in a single call. * @return Returns a reference to this object so that method calls can be chained together. */ public PutAttributesRequest withAttributes(java.util.Collection