All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.quicksight.model.CreateTemplateRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon QuickSight module holds the client classes that are used for communicating with Amazon QuickSight Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2014-2019 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 CreateTemplateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your * Amazon QuickSight account. *

*/ private String awsAccountId; /** *

* An ID for the template you want to create. This is unique per AWS region per AWS account. *

*/ private String templateId; /** *

* A display name for the template. *

*/ private String name; /** *

* A list of resource permissions to be set on the template. *

*/ private java.util.List permissions; /** *

* The Amazon Resource Name (ARN) of the source entity from which this template is being created. Templates can be * currently created from an analysis or another template. If the ARN is for an analysis, you must include its * dataset references. *

*/ private TemplateSourceEntity sourceEntity; /** *

* Contains a map of the key-value pairs for the resource tag or tags assigned to the resource. *

*/ private java.util.List tags; /** *

* A description of the current template version being created. This API created the first version of the template. * Every time UpdateTemplate is called a new version is created. Each version of the template maintains a * description of the version in the VersionDescription field. *

*/ private String versionDescription; /** *

* The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your * Amazon QuickSight account. *

* * @param awsAccountId * The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that * contains your Amazon QuickSight account. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** *

* The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your * Amazon QuickSight account. *

* * @return The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that * contains your Amazon QuickSight account. */ public String getAwsAccountId() { return this.awsAccountId; } /** *

* The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your * Amazon QuickSight account. *

* * @param awsAccountId * The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that * contains your Amazon QuickSight account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTemplateRequest withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** *

* An ID for the template you want to create. This is unique per AWS region per AWS account. *

* * @param templateId * An ID for the template you want to create. This is unique per AWS region per AWS account. */ public void setTemplateId(String templateId) { this.templateId = templateId; } /** *

* An ID for the template you want to create. This is unique per AWS region per AWS account. *

* * @return An ID for the template you want to create. This is unique per AWS region per AWS account. */ public String getTemplateId() { return this.templateId; } /** *

* An ID for the template you want to create. This is unique per AWS region per AWS account. *

* * @param templateId * An ID for the template you want to create. This is unique per AWS region per AWS account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTemplateRequest withTemplateId(String templateId) { setTemplateId(templateId); return this; } /** *

* A display name for the template. *

* * @param name * A display name for the template. */ public void setName(String name) { this.name = name; } /** *

* A display name for the template. *

* * @return A display name for the template. */ public String getName() { return this.name; } /** *

* A display name for the template. *

* * @param name * A display name for the template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTemplateRequest withName(String name) { setName(name); return this; } /** *

* A list of resource permissions to be set on the template. *

* * @return A list of resource permissions to be set on the template. */ public java.util.List getPermissions() { return permissions; } /** *

* A list of resource permissions to be set on the template. *

* * @param permissions * A list of resource permissions to be set on the template. */ public void setPermissions(java.util.Collection permissions) { if (permissions == null) { this.permissions = null; return; } this.permissions = new java.util.ArrayList(permissions); } /** *

* A list of resource permissions to be set on the template. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setPermissions(java.util.Collection)} or {@link #withPermissions(java.util.Collection)} if you want to * override the existing values. *

* * @param permissions * A list of resource permissions to be set on the template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTemplateRequest withPermissions(ResourcePermission... permissions) { if (this.permissions == null) { setPermissions(new java.util.ArrayList(permissions.length)); } for (ResourcePermission ele : permissions) { this.permissions.add(ele); } return this; } /** *

* A list of resource permissions to be set on the template. *

* * @param permissions * A list of resource permissions to be set on the template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTemplateRequest withPermissions(java.util.Collection permissions) { setPermissions(permissions); return this; } /** *

* The Amazon Resource Name (ARN) of the source entity from which this template is being created. Templates can be * currently created from an analysis or another template. If the ARN is for an analysis, you must include its * dataset references. *

* * @param sourceEntity * The Amazon Resource Name (ARN) of the source entity from which this template is being created. Templates * can be currently created from an analysis or another template. If the ARN is for an analysis, you must * include its dataset references. */ public void setSourceEntity(TemplateSourceEntity sourceEntity) { this.sourceEntity = sourceEntity; } /** *

* The Amazon Resource Name (ARN) of the source entity from which this template is being created. Templates can be * currently created from an analysis or another template. If the ARN is for an analysis, you must include its * dataset references. *

* * @return The Amazon Resource Name (ARN) of the source entity from which this template is being created. Templates * can be currently created from an analysis or another template. If the ARN is for an analysis, you must * include its dataset references. */ public TemplateSourceEntity getSourceEntity() { return this.sourceEntity; } /** *

* The Amazon Resource Name (ARN) of the source entity from which this template is being created. Templates can be * currently created from an analysis or another template. If the ARN is for an analysis, you must include its * dataset references. *

* * @param sourceEntity * The Amazon Resource Name (ARN) of the source entity from which this template is being created. Templates * can be currently created from an analysis or another template. If the ARN is for an analysis, you must * include its dataset references. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTemplateRequest withSourceEntity(TemplateSourceEntity sourceEntity) { setSourceEntity(sourceEntity); return this; } /** *

* Contains a map of the key-value pairs for the resource tag or tags assigned to the resource. *

* * @return Contains a map of the key-value pairs for the resource tag or tags assigned to the resource. */ public java.util.List getTags() { return tags; } /** *

* Contains a map of the key-value pairs for the resource tag or tags assigned to the resource. *

* * @param tags * Contains a map of the key-value pairs for the resource tag or tags assigned to the resource. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* Contains a map of the key-value pairs for the resource tag or tags assigned to the resource. *

*

* 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 assigned to the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTemplateRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* Contains a map of the key-value pairs for the resource tag or tags assigned to the resource. *

* * @param tags * Contains a map of the key-value pairs for the resource tag or tags assigned to the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTemplateRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* A description of the current template version being created. This API created the first version of the template. * Every time UpdateTemplate is called a new version is created. Each version of the template maintains a * description of the version in the VersionDescription field. *

* * @param versionDescription * A description of the current template version being created. This API created the first version of the * template. Every time UpdateTemplate is called a new version is created. Each version of the template * maintains a description of the version in the VersionDescription field. */ public void setVersionDescription(String versionDescription) { this.versionDescription = versionDescription; } /** *

* A description of the current template version being created. This API created the first version of the template. * Every time UpdateTemplate is called a new version is created. Each version of the template maintains a * description of the version in the VersionDescription field. *

* * @return A description of the current template version being created. This API created the first version of the * template. Every time UpdateTemplate is called a new version is created. Each version of the template * maintains a description of the version in the VersionDescription field. */ public String getVersionDescription() { return this.versionDescription; } /** *

* A description of the current template version being created. This API created the first version of the template. * Every time UpdateTemplate is called a new version is created. Each version of the template maintains a * description of the version in the VersionDescription field. *

* * @param versionDescription * A description of the current template version being created. This API created the first version of the * template. Every time UpdateTemplate is called a new version is created. Each version of the template * maintains a description of the version in the VersionDescription field. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTemplateRequest withVersionDescription(String versionDescription) { setVersionDescription(versionDescription); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAwsAccountId() != null) sb.append("AwsAccountId: ").append(getAwsAccountId()).append(","); if (getTemplateId() != null) sb.append("TemplateId: ").append(getTemplateId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getPermissions() != null) sb.append("Permissions: ").append(getPermissions()).append(","); if (getSourceEntity() != null) sb.append("SourceEntity: ").append(getSourceEntity()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getVersionDescription() != null) sb.append("VersionDescription: ").append(getVersionDescription()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateTemplateRequest == false) return false; CreateTemplateRequest other = (CreateTemplateRequest) obj; if (other.getAwsAccountId() == null ^ this.getAwsAccountId() == null) return false; if (other.getAwsAccountId() != null && other.getAwsAccountId().equals(this.getAwsAccountId()) == false) return false; if (other.getTemplateId() == null ^ this.getTemplateId() == null) return false; if (other.getTemplateId() != null && other.getTemplateId().equals(this.getTemplateId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getPermissions() == null ^ this.getPermissions() == null) return false; if (other.getPermissions() != null && other.getPermissions().equals(this.getPermissions()) == false) return false; if (other.getSourceEntity() == null ^ this.getSourceEntity() == null) return false; if (other.getSourceEntity() != null && other.getSourceEntity().equals(this.getSourceEntity()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getVersionDescription() == null ^ this.getVersionDescription() == null) return false; if (other.getVersionDescription() != null && other.getVersionDescription().equals(this.getVersionDescription()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAwsAccountId() == null) ? 0 : getAwsAccountId().hashCode()); hashCode = prime * hashCode + ((getTemplateId() == null) ? 0 : getTemplateId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getPermissions() == null) ? 0 : getPermissions().hashCode()); hashCode = prime * hashCode + ((getSourceEntity() == null) ? 0 : getSourceEntity().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getVersionDescription() == null) ? 0 : getVersionDescription().hashCode()); return hashCode; } @Override public CreateTemplateRequest clone() { return (CreateTemplateRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy