/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { /** *

The login credentials to use to import a data source resource.

See * Also:

AWS * API Reference

*/ class AssetBundleImportJobDataSourceCredentials { public: AWS_QUICKSIGHT_API AssetBundleImportJobDataSourceCredentials(); AWS_QUICKSIGHT_API AssetBundleImportJobDataSourceCredentials(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API AssetBundleImportJobDataSourceCredentials& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A username and password credential pair to be used to create the imported * data source. Keep this field blank if you are using a Secrets Manager secret to * provide credentials.

*/ inline const AssetBundleImportJobDataSourceCredentialPair& GetCredentialPair() const{ return m_credentialPair; } /** *

A username and password credential pair to be used to create the imported * data source. Keep this field blank if you are using a Secrets Manager secret to * provide credentials.

*/ inline bool CredentialPairHasBeenSet() const { return m_credentialPairHasBeenSet; } /** *

A username and password credential pair to be used to create the imported * data source. Keep this field blank if you are using a Secrets Manager secret to * provide credentials.

*/ inline void SetCredentialPair(const AssetBundleImportJobDataSourceCredentialPair& value) { m_credentialPairHasBeenSet = true; m_credentialPair = value; } /** *

A username and password credential pair to be used to create the imported * data source. Keep this field blank if you are using a Secrets Manager secret to * provide credentials.

*/ inline void SetCredentialPair(AssetBundleImportJobDataSourceCredentialPair&& value) { m_credentialPairHasBeenSet = true; m_credentialPair = std::move(value); } /** *

A username and password credential pair to be used to create the imported * data source. Keep this field blank if you are using a Secrets Manager secret to * provide credentials.

*/ inline AssetBundleImportJobDataSourceCredentials& WithCredentialPair(const AssetBundleImportJobDataSourceCredentialPair& value) { SetCredentialPair(value); return *this;} /** *

A username and password credential pair to be used to create the imported * data source. Keep this field blank if you are using a Secrets Manager secret to * provide credentials.

*/ inline AssetBundleImportJobDataSourceCredentials& WithCredentialPair(AssetBundleImportJobDataSourceCredentialPair&& value) { SetCredentialPair(std::move(value)); return *this;} /** *

The ARN of the Secrets Manager secret that's used to create the imported data * source. Keep this field blank, unless you are using a secret in place of a * credential pair.

*/ inline const Aws::String& GetSecretArn() const{ return m_secretArn; } /** *

The ARN of the Secrets Manager secret that's used to create the imported data * source. Keep this field blank, unless you are using a secret in place of a * credential pair.

*/ inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; } /** *

The ARN of the Secrets Manager secret that's used to create the imported data * source. Keep this field blank, unless you are using a secret in place of a * credential pair.

*/ inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; } /** *

The ARN of the Secrets Manager secret that's used to create the imported data * source. Keep this field blank, unless you are using a secret in place of a * credential pair.

*/ inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); } /** *

The ARN of the Secrets Manager secret that's used to create the imported data * source. Keep this field blank, unless you are using a secret in place of a * credential pair.

*/ inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); } /** *

The ARN of the Secrets Manager secret that's used to create the imported data * source. Keep this field blank, unless you are using a secret in place of a * credential pair.

*/ inline AssetBundleImportJobDataSourceCredentials& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;} /** *

The ARN of the Secrets Manager secret that's used to create the imported data * source. Keep this field blank, unless you are using a secret in place of a * credential pair.

*/ inline AssetBundleImportJobDataSourceCredentials& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;} /** *

The ARN of the Secrets Manager secret that's used to create the imported data * source. Keep this field blank, unless you are using a secret in place of a * credential pair.

*/ inline AssetBundleImportJobDataSourceCredentials& WithSecretArn(const char* value) { SetSecretArn(value); return *this;} private: AssetBundleImportJobDataSourceCredentialPair m_credentialPair; bool m_credentialPairHasBeenSet = false; Aws::String m_secretArn; bool m_secretArnHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws