/* * 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.oam.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 UpdateLinkRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ARN of the link that you want to update. *
*/ private String identifier; /** ** An array of strings that define which types of data that the source account will send to the monitoring account. *
** Your input here replaces the current set of data types that are shared. *
*/ private java.util.List* The ARN of the link that you want to update. *
* * @param identifier * The ARN of the link that you want to update. */ public void setIdentifier(String identifier) { this.identifier = identifier; } /** ** The ARN of the link that you want to update. *
* * @return The ARN of the link that you want to update. */ public String getIdentifier() { return this.identifier; } /** ** The ARN of the link that you want to update. *
* * @param identifier * The ARN of the link that you want to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLinkRequest withIdentifier(String identifier) { setIdentifier(identifier); return this; } /** ** An array of strings that define which types of data that the source account will send to the monitoring account. *
** Your input here replaces the current set of data types that are shared. *
* * @return An array of strings that define which types of data that the source account will send to the monitoring * account. *
* Your input here replaces the current set of data types that are shared.
* @see ResourceType
*/
public java.util.List
* An array of strings that define which types of data that the source account will send to the monitoring account.
*
* Your input here replaces the current set of data types that are shared.
*
* Your input here replaces the current set of data types that are shared.
* @see ResourceType
*/
public void setResourceTypes(java.util.Collection
* An array of strings that define which types of data that the source account will send to the monitoring account.
*
* Your input here replaces the current set of data types that are shared.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setResourceTypes(java.util.Collection)} or {@link #withResourceTypes(java.util.Collection)} if you want
* to override the existing values.
*
* Your input here replaces the current set of data types that are shared.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ResourceType
*/
public UpdateLinkRequest withResourceTypes(String... resourceTypes) {
if (this.resourceTypes == null) {
setResourceTypes(new java.util.ArrayList
* An array of strings that define which types of data that the source account will send to the monitoring account.
*
* Your input here replaces the current set of data types that are shared.
*
* Your input here replaces the current set of data types that are shared.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ResourceType
*/
public UpdateLinkRequest withResourceTypes(java.util.Collection
* An array of strings that define which types of data that the source account will send to the monitoring account.
*
* Your input here replaces the current set of data types that are shared.
*
* Your input here replaces the current set of data types that are shared.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ResourceType
*/
public UpdateLinkRequest withResourceTypes(ResourceType... resourceTypes) {
java.util.ArrayList