/* * 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 CreateLinkRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Specify a friendly human-readable name to use to identify this source account when you are viewing data from it * in the monitoring account. *
** You can use a custom label or use the following variables: *
*
* $AccountName
is the name of the account
*
* $AccountEmail
is the globally unique email address of the account
*
* $AccountEmailNoDomain
is the email address of the account without the domain name
*
* An array of strings that define which types of data that the source account shares with the monitoring account. *
*/ private java.util.List* The ARN of the sink to use to create this link. You can use ListSinks to find the ARNs of * sinks. *
** For more information about sinks, see CreateSink. *
*/ private String sinkIdentifier; /** ** Assigns one or more tags (key-value pairs) to the link. *
** Tags can help you organize and categorize your resources. You can also use them to scope user permissions by * granting a user permission to access or change only resources with certain tag values. *
** For more information about using tags to control access, see Controlling access to Amazon Web * Services resources using tags. *
*/ private java.util.Map* Specify a friendly human-readable name to use to identify this source account when you are viewing data from it * in the monitoring account. *
** You can use a custom label or use the following variables: *
*
* $AccountName
is the name of the account
*
* $AccountEmail
is the globally unique email address of the account
*
* $AccountEmailNoDomain
is the email address of the account without the domain name
*
* You can use a custom label or use the following variables: *
*
* $AccountName
is the name of the account
*
* $AccountEmail
is the globally unique email address of the account
*
* $AccountEmailNoDomain
is the email address of the account without the domain name
*
* Specify a friendly human-readable name to use to identify this source account when you are viewing data from it * in the monitoring account. *
** You can use a custom label or use the following variables: *
*
* $AccountName
is the name of the account
*
* $AccountEmail
is the globally unique email address of the account
*
* $AccountEmailNoDomain
is the email address of the account without the domain name
*
* You can use a custom label or use the following variables: *
*
* $AccountName
is the name of the account
*
* $AccountEmail
is the globally unique email address of the account
*
* $AccountEmailNoDomain
is the email address of the account without the domain name
*
* Specify a friendly human-readable name to use to identify this source account when you are viewing data from it * in the monitoring account. *
** You can use a custom label or use the following variables: *
*
* $AccountName
is the name of the account
*
* $AccountEmail
is the globally unique email address of the account
*
* $AccountEmailNoDomain
is the email address of the account without the domain name
*
* You can use a custom label or use the following variables: *
*
* $AccountName
is the name of the account
*
* $AccountEmail
is the globally unique email address of the account
*
* $AccountEmailNoDomain
is the email address of the account without the domain name
*
* An array of strings that define which types of data that the source account shares with the monitoring account. *
* * @return An array of strings that define which types of data that the source account shares with the monitoring * account. * @see ResourceType */ public java.util.List* An array of strings that define which types of data that the source account shares with the monitoring account. *
* * @param resourceTypes * An array of strings that define which types of data that the source account shares with the monitoring * account. * @see ResourceType */ public void setResourceTypes(java.util.Collection* An array of strings that define which types of data that the source account shares with the monitoring account. *
** 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. *
* * @param resourceTypes * An array of strings that define which types of data that the source account shares with the monitoring * account. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceType */ public CreateLinkRequest 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 shares with the monitoring account. *
* * @param resourceTypes * An array of strings that define which types of data that the source account shares with the monitoring * account. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceType */ public CreateLinkRequest withResourceTypes(java.util.Collection* An array of strings that define which types of data that the source account shares with the monitoring account. *
* * @param resourceTypes * An array of strings that define which types of data that the source account shares with the monitoring * account. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceType */ public CreateLinkRequest withResourceTypes(ResourceType... resourceTypes) { java.util.ArrayList* The ARN of the sink to use to create this link. You can use ListSinks to find the ARNs of * sinks. *
** For more information about sinks, see CreateSink. *
* * @param sinkIdentifier * The ARN of the sink to use to create this link. You can use ListSinks to find the * ARNs of sinks. ** For more information about sinks, see CreateSink. */ public void setSinkIdentifier(String sinkIdentifier) { this.sinkIdentifier = sinkIdentifier; } /** *
* The ARN of the sink to use to create this link. You can use ListSinks to find the ARNs of * sinks. *
** For more information about sinks, see CreateSink. *
* * @return The ARN of the sink to use to create this link. You can use ListSinks to find the * ARNs of sinks. ** For more information about sinks, see CreateSink. */ public String getSinkIdentifier() { return this.sinkIdentifier; } /** *
* The ARN of the sink to use to create this link. You can use ListSinks to find the ARNs of * sinks. *
** For more information about sinks, see CreateSink. *
* * @param sinkIdentifier * The ARN of the sink to use to create this link. You can use ListSinks to find the * ARNs of sinks. ** For more information about sinks, see CreateSink. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLinkRequest withSinkIdentifier(String sinkIdentifier) { setSinkIdentifier(sinkIdentifier); return this; } /** *
* Assigns one or more tags (key-value pairs) to the link. *
** Tags can help you organize and categorize your resources. You can also use them to scope user permissions by * granting a user permission to access or change only resources with certain tag values. *
** For more information about using tags to control access, see Controlling access to Amazon Web * Services resources using tags. *
* * @return Assigns one or more tags (key-value pairs) to the link. ** Tags can help you organize and categorize your resources. You can also use them to scope user permissions * by granting a user permission to access or change only resources with certain tag values. *
*
* For more information about using tags to control access, see Controlling access to Amazon Web
* Services resources using tags.
*/
public java.util.Map
* Assigns one or more tags (key-value pairs) to the link.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions by
* granting a user permission to access or change only resources with certain tag values.
*
* For more information about using tags to control access, see Controlling access to Amazon Web
* Services resources using tags.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions * by granting a user permission to access or change only resources with certain tag values. *
*
* For more information about using tags to control access, see Controlling access to Amazon Web
* Services resources using tags.
*/
public void setTags(java.util.Map
* Assigns one or more tags (key-value pairs) to the link.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions by
* granting a user permission to access or change only resources with certain tag values.
*
* For more information about using tags to control access, see Controlling access to Amazon Web
* Services resources using tags.
*
* Tags can help you organize and categorize your resources. You can also use them to scope user permissions * by granting a user permission to access or change only resources with certain tag values. *
*
* For more information about using tags to control access, see Controlling access to Amazon Web
* Services resources using tags.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLinkRequest withTags(java.util.Map