/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The combination of user name and password that are used as credentials. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CredentialPair implements Serializable, Cloneable, StructuredPojo { /** ** User name. *
*/ private String username; /** ** Password. *
*/ private String password; /** *
* A set of alternate data source parameters that you want to share for these credentials. The credentials are
* applied in tandem with the data source parameters when you copy a data source by using a create or update
* request. The API operation compares the DataSourceParameters
structure that's in the request with
* the structures in the AlternateDataSourceParameters
allow list. If the structures are an exact
* match, the request is allowed to use the new data source with the existing credentials. If the
* AlternateDataSourceParameters
list is null, the DataSourceParameters
originally used
* with these Credentials
is automatically allowed.
*
* User name. *
* * @param username * User name. */ public void setUsername(String username) { this.username = username; } /** ** User name. *
* * @return User name. */ public String getUsername() { return this.username; } /** ** User name. *
* * @param username * User name. * @return Returns a reference to this object so that method calls can be chained together. */ public CredentialPair withUsername(String username) { setUsername(username); return this; } /** ** Password. *
* * @param password * Password. */ public void setPassword(String password) { this.password = password; } /** ** Password. *
* * @return Password. */ public String getPassword() { return this.password; } /** ** Password. *
* * @param password * Password. * @return Returns a reference to this object so that method calls can be chained together. */ public CredentialPair withPassword(String password) { setPassword(password); return this; } /** *
* A set of alternate data source parameters that you want to share for these credentials. The credentials are
* applied in tandem with the data source parameters when you copy a data source by using a create or update
* request. The API operation compares the DataSourceParameters
structure that's in the request with
* the structures in the AlternateDataSourceParameters
allow list. If the structures are an exact
* match, the request is allowed to use the new data source with the existing credentials. If the
* AlternateDataSourceParameters
list is null, the DataSourceParameters
originally used
* with these Credentials
is automatically allowed.
*
DataSourceParameters
structure that's in the
* request with the structures in the AlternateDataSourceParameters
allow list. If the
* structures are an exact match, the request is allowed to use the new data source with the existing
* credentials. If the AlternateDataSourceParameters
list is null, the
* DataSourceParameters
originally used with these Credentials
is automatically
* allowed.
*/
public java.util.List
* A set of alternate data source parameters that you want to share for these credentials. The credentials are
* applied in tandem with the data source parameters when you copy a data source by using a create or update
* request. The API operation compares the DataSourceParameters
structure that's in the request with
* the structures in the AlternateDataSourceParameters
allow list. If the structures are an exact
* match, the request is allowed to use the new data source with the existing credentials. If the
* AlternateDataSourceParameters
list is null, the DataSourceParameters
originally used
* with these Credentials
is automatically allowed.
*
DataSourceParameters
structure that's in the
* request with the structures in the AlternateDataSourceParameters
allow list. If the
* structures are an exact match, the request is allowed to use the new data source with the existing
* credentials. If the AlternateDataSourceParameters
list is null, the
* DataSourceParameters
originally used with these Credentials
is automatically
* allowed.
*/
public void setAlternateDataSourceParameters(java.util.Collection
* A set of alternate data source parameters that you want to share for these credentials. The credentials are
* applied in tandem with the data source parameters when you copy a data source by using a create or update
* request. The API operation compares the DataSourceParameters
structure that's in the request with
* the structures in the AlternateDataSourceParameters
allow list. If the structures are an exact
* match, the request is allowed to use the new data source with the existing credentials. If the
* AlternateDataSourceParameters
list is null, the DataSourceParameters
originally used
* with these Credentials
is automatically allowed.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAlternateDataSourceParameters(java.util.Collection)} or * {@link #withAlternateDataSourceParameters(java.util.Collection)} if you want to override the existing values. *
* * @param alternateDataSourceParameters * A set of alternate data source parameters that you want to share for these credentials. The credentials * are applied in tandem with the data source parameters when you copy a data source by using a create or * update request. The API operation compares theDataSourceParameters
structure that's in the
* request with the structures in the AlternateDataSourceParameters
allow list. If the
* structures are an exact match, the request is allowed to use the new data source with the existing
* credentials. If the AlternateDataSourceParameters
list is null, the
* DataSourceParameters
originally used with these Credentials
is automatically
* allowed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CredentialPair withAlternateDataSourceParameters(DataSourceParameters... alternateDataSourceParameters) {
if (this.alternateDataSourceParameters == null) {
setAlternateDataSourceParameters(new java.util.ArrayList
* A set of alternate data source parameters that you want to share for these credentials. The credentials are
* applied in tandem with the data source parameters when you copy a data source by using a create or update
* request. The API operation compares the DataSourceParameters
structure that's in the request with
* the structures in the AlternateDataSourceParameters
allow list. If the structures are an exact
* match, the request is allowed to use the new data source with the existing credentials. If the
* AlternateDataSourceParameters
list is null, the DataSourceParameters
originally used
* with these Credentials
is automatically allowed.
*
DataSourceParameters
structure that's in the
* request with the structures in the AlternateDataSourceParameters
allow list. If the
* structures are an exact match, the request is allowed to use the new data source with the existing
* credentials. If the AlternateDataSourceParameters
list is null, the
* DataSourceParameters
originally used with these Credentials
is automatically
* allowed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CredentialPair withAlternateDataSourceParameters(java.util.Collection