/* * 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.resourcegroups.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 GroupResourcesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name or the ARN of the resource group to add resources to. *
*/ private String group; /** ** The list of ARNs of the resources to be added to the group. *
*/ private java.util.List* The name or the ARN of the resource group to add resources to. *
* * @param group * The name or the ARN of the resource group to add resources to. */ public void setGroup(String group) { this.group = group; } /** ** The name or the ARN of the resource group to add resources to. *
* * @return The name or the ARN of the resource group to add resources to. */ public String getGroup() { return this.group; } /** ** The name or the ARN of the resource group to add resources to. *
* * @param group * The name or the ARN of the resource group to add resources to. * @return Returns a reference to this object so that method calls can be chained together. */ public GroupResourcesRequest withGroup(String group) { setGroup(group); return this; } /** ** The list of ARNs of the resources to be added to the group. *
* * @return The list of ARNs of the resources to be added to the group. */ public java.util.List* The list of ARNs of the resources to be added to the group. *
* * @param resourceArns * The list of ARNs of the resources to be added to the group. */ public void setResourceArns(java.util.Collection* The list of ARNs of the resources to be added to the group. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setResourceArns(java.util.Collection)} or {@link #withResourceArns(java.util.Collection)} if you want to * override the existing values. *
* * @param resourceArns * The list of ARNs of the resources to be added to the group. * @return Returns a reference to this object so that method calls can be chained together. */ public GroupResourcesRequest withResourceArns(String... resourceArns) { if (this.resourceArns == null) { setResourceArns(new java.util.ArrayList* The list of ARNs of the resources to be added to the group. *
* * @param resourceArns * The list of ARNs of the resources to be added to the group. * @return Returns a reference to this object so that method calls can be chained together. */ public GroupResourcesRequest withResourceArns(java.util.Collection