/* * 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.quicksight.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 CreateTopicRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the Amazon Web Services account that you want to create a topic in. *
*/ private String awsAccountId; /** ** The ID for the topic that you want to create. This ID is unique per Amazon Web Services Region for each Amazon * Web Services account. *
*/ private String topicId; /** ** The definition of a topic to create. *
*/ private TopicDetails topic; /** ** Contains a map of the key-value pairs for the resource tag or tags that are assigned to the dataset. *
*/ private java.util.List* The ID of the Amazon Web Services account that you want to create a topic in. *
* * @param awsAccountId * The ID of the Amazon Web Services account that you want to create a topic in. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** The ID of the Amazon Web Services account that you want to create a topic in. *
* * @return The ID of the Amazon Web Services account that you want to create a topic in. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** The ID of the Amazon Web Services account that you want to create a topic in. *
* * @param awsAccountId * The ID of the Amazon Web Services account that you want to create a topic in. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTopicRequest withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** ** The ID for the topic that you want to create. This ID is unique per Amazon Web Services Region for each Amazon * Web Services account. *
* * @param topicId * The ID for the topic that you want to create. This ID is unique per Amazon Web Services Region for each * Amazon Web Services account. */ public void setTopicId(String topicId) { this.topicId = topicId; } /** ** The ID for the topic that you want to create. This ID is unique per Amazon Web Services Region for each Amazon * Web Services account. *
* * @return The ID for the topic that you want to create. This ID is unique per Amazon Web Services Region for each * Amazon Web Services account. */ public String getTopicId() { return this.topicId; } /** ** The ID for the topic that you want to create. This ID is unique per Amazon Web Services Region for each Amazon * Web Services account. *
* * @param topicId * The ID for the topic that you want to create. This ID is unique per Amazon Web Services Region for each * Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTopicRequest withTopicId(String topicId) { setTopicId(topicId); return this; } /** ** The definition of a topic to create. *
* * @param topic * The definition of a topic to create. */ public void setTopic(TopicDetails topic) { this.topic = topic; } /** ** The definition of a topic to create. *
* * @return The definition of a topic to create. */ public TopicDetails getTopic() { return this.topic; } /** ** The definition of a topic to create. *
* * @param topic * The definition of a topic to create. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTopicRequest withTopic(TopicDetails topic) { setTopic(topic); return this; } /** ** Contains a map of the key-value pairs for the resource tag or tags that are assigned to the dataset. *
* * @return Contains a map of the key-value pairs for the resource tag or tags that are assigned to the dataset. */ public java.util.List* Contains a map of the key-value pairs for the resource tag or tags that are assigned to the dataset. *
* * @param tags * Contains a map of the key-value pairs for the resource tag or tags that are assigned to the dataset. */ public void setTags(java.util.Collection* Contains a map of the key-value pairs for the resource tag or tags that are assigned to the dataset. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Contains a map of the key-value pairs for the resource tag or tags that are assigned to the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTopicRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Contains a map of the key-value pairs for the resource tag or tags that are assigned to the dataset. *
* * @param tags * Contains a map of the key-value pairs for the resource tag or tags that are assigned to the dataset. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTopicRequest withTags(java.util.Collection