/* * 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 CreateThemeRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the Amazon Web Services account where you want to store the new theme. *
*/ private String awsAccountId; /** ** An ID for the theme that you want to create. The theme ID is unique per Amazon Web Services Region in each Amazon * Web Services account. *
*/ private String themeId; /** ** A display name for the theme. *
*/ private String name; /** *
* The ID of the theme that a custom theme will inherit from. All themes inherit from one of the starting themes
* defined by Amazon QuickSight. For a list of the starting themes, use ListThemes
or choose
* Themes from within an analysis.
*
* A description of the first version of the theme that you're creating. Every time UpdateTheme
is
* called, a new version is created. Each version of the theme has a description of the version in the
* VersionDescription
field.
*
* The theme configuration, which contains the theme display properties. *
*/ private ThemeConfiguration configuration; /** ** A valid grouping of resource permissions to apply to the new theme. *
*/ private java.util.List* A map of the key-value pairs for the resource tag or tags that you want to add to the resource. *
*/ private java.util.List* The ID of the Amazon Web Services account where you want to store the new theme. *
* * @param awsAccountId * The ID of the Amazon Web Services account where you want to store the new theme. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** The ID of the Amazon Web Services account where you want to store the new theme. *
* * @return The ID of the Amazon Web Services account where you want to store the new theme. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** The ID of the Amazon Web Services account where you want to store the new theme. *
* * @param awsAccountId * The ID of the Amazon Web Services account where you want to store the new theme. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThemeRequest withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** ** An ID for the theme that you want to create. The theme ID is unique per Amazon Web Services Region in each Amazon * Web Services account. *
* * @param themeId * An ID for the theme that you want to create. The theme ID is unique per Amazon Web Services Region in each * Amazon Web Services account. */ public void setThemeId(String themeId) { this.themeId = themeId; } /** ** An ID for the theme that you want to create. The theme ID is unique per Amazon Web Services Region in each Amazon * Web Services account. *
* * @return An ID for the theme that you want to create. The theme ID is unique per Amazon Web Services Region in * each Amazon Web Services account. */ public String getThemeId() { return this.themeId; } /** ** An ID for the theme that you want to create. The theme ID is unique per Amazon Web Services Region in each Amazon * Web Services account. *
* * @param themeId * An ID for the theme that you want to create. The theme ID is unique per Amazon Web Services Region in each * Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThemeRequest withThemeId(String themeId) { setThemeId(themeId); return this; } /** ** A display name for the theme. *
* * @param name * A display name for the theme. */ public void setName(String name) { this.name = name; } /** ** A display name for the theme. *
* * @return A display name for the theme. */ public String getName() { return this.name; } /** ** A display name for the theme. *
* * @param name * A display name for the theme. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThemeRequest withName(String name) { setName(name); return this; } /** *
* The ID of the theme that a custom theme will inherit from. All themes inherit from one of the starting themes
* defined by Amazon QuickSight. For a list of the starting themes, use ListThemes
or choose
* Themes from within an analysis.
*
ListThemes
or
* choose Themes from within an analysis.
*/
public void setBaseThemeId(String baseThemeId) {
this.baseThemeId = baseThemeId;
}
/**
*
* The ID of the theme that a custom theme will inherit from. All themes inherit from one of the starting themes
* defined by Amazon QuickSight. For a list of the starting themes, use ListThemes
or choose
* Themes from within an analysis.
*
ListThemes
or
* choose Themes from within an analysis.
*/
public String getBaseThemeId() {
return this.baseThemeId;
}
/**
*
* The ID of the theme that a custom theme will inherit from. All themes inherit from one of the starting themes
* defined by Amazon QuickSight. For a list of the starting themes, use ListThemes
or choose
* Themes from within an analysis.
*
ListThemes
or
* choose Themes from within an analysis.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateThemeRequest withBaseThemeId(String baseThemeId) {
setBaseThemeId(baseThemeId);
return this;
}
/**
*
* A description of the first version of the theme that you're creating. Every time UpdateTheme
is
* called, a new version is created. Each version of the theme has a description of the version in the
* VersionDescription
field.
*
UpdateTheme
* is called, a new version is created. Each version of the theme has a description of the version in the
* VersionDescription
field.
*/
public void setVersionDescription(String versionDescription) {
this.versionDescription = versionDescription;
}
/**
*
* A description of the first version of the theme that you're creating. Every time UpdateTheme
is
* called, a new version is created. Each version of the theme has a description of the version in the
* VersionDescription
field.
*
UpdateTheme
* is called, a new version is created. Each version of the theme has a description of the version in the
* VersionDescription
field.
*/
public String getVersionDescription() {
return this.versionDescription;
}
/**
*
* A description of the first version of the theme that you're creating. Every time UpdateTheme
is
* called, a new version is created. Each version of the theme has a description of the version in the
* VersionDescription
field.
*
UpdateTheme
* is called, a new version is created. Each version of the theme has 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 CreateThemeRequest withVersionDescription(String versionDescription) {
setVersionDescription(versionDescription);
return this;
}
/**
* * The theme configuration, which contains the theme display properties. *
* * @param configuration * The theme configuration, which contains the theme display properties. */ public void setConfiguration(ThemeConfiguration configuration) { this.configuration = configuration; } /** ** The theme configuration, which contains the theme display properties. *
* * @return The theme configuration, which contains the theme display properties. */ public ThemeConfiguration getConfiguration() { return this.configuration; } /** ** The theme configuration, which contains the theme display properties. *
* * @param configuration * The theme configuration, which contains the theme display properties. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThemeRequest withConfiguration(ThemeConfiguration configuration) { setConfiguration(configuration); return this; } /** ** A valid grouping of resource permissions to apply to the new theme. *
* * @return A valid grouping of resource permissions to apply to the new theme. */ public java.util.List* A valid grouping of resource permissions to apply to the new theme. *
* * @param permissions * A valid grouping of resource permissions to apply to the new theme. */ public void setPermissions(java.util.Collection* A valid grouping of resource permissions to apply to the new theme. *
** 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 valid grouping of resource permissions to apply to the new theme. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThemeRequest withPermissions(ResourcePermission... permissions) { if (this.permissions == null) { setPermissions(new java.util.ArrayList* A valid grouping of resource permissions to apply to the new theme. *
* * @param permissions * A valid grouping of resource permissions to apply to the new theme. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThemeRequest withPermissions(java.util.Collection* A map of the key-value pairs for the resource tag or tags that you want to add to the resource. *
* * @return A map of the key-value pairs for the resource tag or tags that you want to add to the resource. */ public java.util.List* A map of the key-value pairs for the resource tag or tags that you want to add to the resource. *
* * @param tags * A map of the key-value pairs for the resource tag or tags that you want to add to the resource. */ public void setTags(java.util.Collection* A map of the key-value pairs for the resource tag or tags that you want to add 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 * A map of the key-value pairs for the resource tag or tags that you want to add to the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThemeRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A map of the key-value pairs for the resource tag or tags that you want to add to the resource. *
* * @param tags * A map of the key-value pairs for the resource tag or tags that you want to add to the resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateThemeRequest withTags(java.util.Collection