/* * 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 GenerateEmbedUrlForRegisteredUserRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID for the Amazon Web Services account that contains the dashboard that you're embedding. *
*/ private String awsAccountId; /** ** How many minutes the session is valid. The session lifetime must be in [15-600] minutes range. *
*/ private Long sessionLifetimeInMinutes; /** ** The Amazon Resource Name for the registered user. *
*/ private String userArn; /** ** The experience you are embedding. For registered users, you can embed Amazon QuickSight dashboards, Amazon * QuickSight visuals, the Amazon QuickSight Q search bar, or the entire Amazon QuickSight console. *
*/ private RegisteredUserEmbeddingExperienceConfiguration experienceConfiguration; /** ** The domains that you want to add to the allow list for access to the generated URL that is then embedded. This * optional parameter overrides the static domains that are configured in the Manage QuickSight menu in the Amazon * QuickSight console. Instead, it allows only the domains that you include in this parameter. You can list up to * three domains or subdomains in each API call. *
*
* To include all subdomains under a specific domain to the allow list, use *. For example,
* https://*.sapp.amazon.com includes all subdomains under https://sapp.amazon.com.
*
* The ID for the Amazon Web Services account that contains the dashboard that you're embedding. *
* * @param awsAccountId * The ID for the Amazon Web Services account that contains the dashboard that you're embedding. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** ** The ID for the Amazon Web Services account that contains the dashboard that you're embedding. *
* * @return The ID for the Amazon Web Services account that contains the dashboard that you're embedding. */ public String getAwsAccountId() { return this.awsAccountId; } /** ** The ID for the Amazon Web Services account that contains the dashboard that you're embedding. *
* * @param awsAccountId * The ID for the Amazon Web Services account that contains the dashboard that you're embedding. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerateEmbedUrlForRegisteredUserRequest withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** ** How many minutes the session is valid. The session lifetime must be in [15-600] minutes range. *
* * @param sessionLifetimeInMinutes * How many minutes the session is valid. The session lifetime must be in [15-600] minutes range. */ public void setSessionLifetimeInMinutes(Long sessionLifetimeInMinutes) { this.sessionLifetimeInMinutes = sessionLifetimeInMinutes; } /** ** How many minutes the session is valid. The session lifetime must be in [15-600] minutes range. *
* * @return How many minutes the session is valid. The session lifetime must be in [15-600] minutes range. */ public Long getSessionLifetimeInMinutes() { return this.sessionLifetimeInMinutes; } /** ** How many minutes the session is valid. The session lifetime must be in [15-600] minutes range. *
* * @param sessionLifetimeInMinutes * How many minutes the session is valid. The session lifetime must be in [15-600] minutes range. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerateEmbedUrlForRegisteredUserRequest withSessionLifetimeInMinutes(Long sessionLifetimeInMinutes) { setSessionLifetimeInMinutes(sessionLifetimeInMinutes); return this; } /** ** The Amazon Resource Name for the registered user. *
* * @param userArn * The Amazon Resource Name for the registered user. */ public void setUserArn(String userArn) { this.userArn = userArn; } /** ** The Amazon Resource Name for the registered user. *
* * @return The Amazon Resource Name for the registered user. */ public String getUserArn() { return this.userArn; } /** ** The Amazon Resource Name for the registered user. *
* * @param userArn * The Amazon Resource Name for the registered user. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerateEmbedUrlForRegisteredUserRequest withUserArn(String userArn) { setUserArn(userArn); return this; } /** ** The experience you are embedding. For registered users, you can embed Amazon QuickSight dashboards, Amazon * QuickSight visuals, the Amazon QuickSight Q search bar, or the entire Amazon QuickSight console. *
* * @param experienceConfiguration * The experience you are embedding. For registered users, you can embed Amazon QuickSight dashboards, Amazon * QuickSight visuals, the Amazon QuickSight Q search bar, or the entire Amazon QuickSight console. */ public void setExperienceConfiguration(RegisteredUserEmbeddingExperienceConfiguration experienceConfiguration) { this.experienceConfiguration = experienceConfiguration; } /** ** The experience you are embedding. For registered users, you can embed Amazon QuickSight dashboards, Amazon * QuickSight visuals, the Amazon QuickSight Q search bar, or the entire Amazon QuickSight console. *
* * @return The experience you are embedding. For registered users, you can embed Amazon QuickSight dashboards, * Amazon QuickSight visuals, the Amazon QuickSight Q search bar, or the entire Amazon QuickSight console. */ public RegisteredUserEmbeddingExperienceConfiguration getExperienceConfiguration() { return this.experienceConfiguration; } /** ** The experience you are embedding. For registered users, you can embed Amazon QuickSight dashboards, Amazon * QuickSight visuals, the Amazon QuickSight Q search bar, or the entire Amazon QuickSight console. *
* * @param experienceConfiguration * The experience you are embedding. For registered users, you can embed Amazon QuickSight dashboards, Amazon * QuickSight visuals, the Amazon QuickSight Q search bar, or the entire Amazon QuickSight console. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerateEmbedUrlForRegisteredUserRequest withExperienceConfiguration(RegisteredUserEmbeddingExperienceConfiguration experienceConfiguration) { setExperienceConfiguration(experienceConfiguration); return this; } /** ** The domains that you want to add to the allow list for access to the generated URL that is then embedded. This * optional parameter overrides the static domains that are configured in the Manage QuickSight menu in the Amazon * QuickSight console. Instead, it allows only the domains that you include in this parameter. You can list up to * three domains or subdomains in each API call. *
*
* To include all subdomains under a specific domain to the allow list, use *. For example,
* https://*.sapp.amazon.com includes all subdomains under https://sapp.amazon.com.
*
* To include all subdomains under a specific domain to the allow list, use
* The domains that you want to add to the allow list for access to the generated URL that is then embedded. This
* optional parameter overrides the static domains that are configured in the Manage QuickSight menu in the Amazon
* QuickSight console. Instead, it allows only the domains that you include in this parameter. You can list up to
* three domains or subdomains in each API call.
*
* To include all subdomains under a specific domain to the allow list, use *. For example,
* https://*.sapp.amazon.com includes all subdomains under https://sapp.amazon.com.
*/
public java.util.List*. For example,
* https://*.sapp.amazon.com includes all subdomains under https://sapp.amazon.com.
*
* To include all subdomains under a specific domain to the allow list, use
* The domains that you want to add to the allow list for access to the generated URL that is then embedded. This
* optional parameter overrides the static domains that are configured in the Manage QuickSight menu in the Amazon
* QuickSight console. Instead, it allows only the domains that you include in this parameter. You can list up to
* three domains or subdomains in each API call.
*
* To include all subdomains under a specific domain to the allow list, use
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAllowedDomains(java.util.Collection)} or {@link #withAllowedDomains(java.util.Collection)} if you want
* to override the existing values.
* *. For example,
* https://*.sapp.amazon.com includes all subdomains under https://sapp.amazon.com.
*/
public void setAllowedDomains(java.util.Collection*. For example,
* https://*.sapp.amazon.com includes all subdomains under https://sapp.amazon.com.
*
* To include all subdomains under a specific domain to the allow list, use
* The domains that you want to add to the allow list for access to the generated URL that is then embedded. This
* optional parameter overrides the static domains that are configured in the Manage QuickSight menu in the Amazon
* QuickSight console. Instead, it allows only the domains that you include in this parameter. You can list up to
* three domains or subdomains in each API call.
*
* To include all subdomains under a specific domain to the allow list, use *. For example,
* https://*.sapp.amazon.com includes all subdomains under https://sapp.amazon.com.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GenerateEmbedUrlForRegisteredUserRequest withAllowedDomains(String... allowedDomains) {
if (this.allowedDomains == null) {
setAllowedDomains(new java.util.ArrayList*. For example,
* https://*.sapp.amazon.com includes all subdomains under https://sapp.amazon.com.
*
* To include all subdomains under a specific domain to the allow list, use *. For example,
* https://*.sapp.amazon.com includes all subdomains under https://sapp.amazon.com.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GenerateEmbedUrlForRegisteredUserRequest withAllowedDomains(java.util.Collection