/* * 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.licensemanager.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 UpdateLicenseSpecificationsForResourceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Amazon Resource Name (ARN) of the Amazon Web Services resource. *
*/ private String resourceArn; /** ** ARNs of the license configurations to add. *
*/ private java.util.List* ARNs of the license configurations to remove. *
*/ private java.util.List* Amazon Resource Name (ARN) of the Amazon Web Services resource. *
* * @param resourceArn * Amazon Resource Name (ARN) of the Amazon Web Services resource. */ public void setResourceArn(String resourceArn) { this.resourceArn = resourceArn; } /** ** Amazon Resource Name (ARN) of the Amazon Web Services resource. *
* * @return Amazon Resource Name (ARN) of the Amazon Web Services resource. */ public String getResourceArn() { return this.resourceArn; } /** ** Amazon Resource Name (ARN) of the Amazon Web Services resource. *
* * @param resourceArn * Amazon Resource Name (ARN) of the Amazon Web Services resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLicenseSpecificationsForResourceRequest withResourceArn(String resourceArn) { setResourceArn(resourceArn); return this; } /** ** ARNs of the license configurations to add. *
* * @return ARNs of the license configurations to add. */ public java.util.List* ARNs of the license configurations to add. *
* * @param addLicenseSpecifications * ARNs of the license configurations to add. */ public void setAddLicenseSpecifications(java.util.Collection* ARNs of the license configurations to add. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAddLicenseSpecifications(java.util.Collection)} or * {@link #withAddLicenseSpecifications(java.util.Collection)} if you want to override the existing values. *
* * @param addLicenseSpecifications * ARNs of the license configurations to add. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLicenseSpecificationsForResourceRequest withAddLicenseSpecifications(LicenseSpecification... addLicenseSpecifications) { if (this.addLicenseSpecifications == null) { setAddLicenseSpecifications(new java.util.ArrayList* ARNs of the license configurations to add. *
* * @param addLicenseSpecifications * ARNs of the license configurations to add. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLicenseSpecificationsForResourceRequest withAddLicenseSpecifications(java.util.Collection* ARNs of the license configurations to remove. *
* * @return ARNs of the license configurations to remove. */ public java.util.List* ARNs of the license configurations to remove. *
* * @param removeLicenseSpecifications * ARNs of the license configurations to remove. */ public void setRemoveLicenseSpecifications(java.util.Collection* ARNs of the license configurations to remove. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRemoveLicenseSpecifications(java.util.Collection)} or * {@link #withRemoveLicenseSpecifications(java.util.Collection)} if you want to override the existing values. *
* * @param removeLicenseSpecifications * ARNs of the license configurations to remove. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLicenseSpecificationsForResourceRequest withRemoveLicenseSpecifications(LicenseSpecification... removeLicenseSpecifications) { if (this.removeLicenseSpecifications == null) { setRemoveLicenseSpecifications(new java.util.ArrayList* ARNs of the license configurations to remove. *
* * @param removeLicenseSpecifications * ARNs of the license configurations to remove. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLicenseSpecificationsForResourceRequest withRemoveLicenseSpecifications(java.util.Collection