/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace QuickSight { namespace Model { /** */ class CreateDataSourceRequest : public QuickSightRequest { public: AWS_QUICKSIGHT_API CreateDataSourceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateDataSource"; } AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; /** *

The Amazon Web Services account ID.

*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *

The Amazon Web Services account ID.

*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *

The Amazon Web Services account ID.

*/ inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } /** *

The Amazon Web Services account ID.

*/ inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } /** *

The Amazon Web Services account ID.

*/ inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } /** *

The Amazon Web Services account ID.

*/ inline CreateDataSourceRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *

The Amazon Web Services account ID.

*/ inline CreateDataSourceRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID.

*/ inline CreateDataSourceRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} /** *

An ID for the data source. This ID is unique per Amazon Web Services Region * for each Amazon Web Services account.

*/ inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; } /** *

An ID for the data source. This ID is unique per Amazon Web Services Region * for each Amazon Web Services account.

*/ inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; } /** *

An ID for the data source. This ID is unique per Amazon Web Services Region * for each Amazon Web Services account.

*/ inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; } /** *

An ID for the data source. This ID is unique per Amazon Web Services Region * for each Amazon Web Services account.

*/ inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); } /** *

An ID for the data source. This ID is unique per Amazon Web Services Region * for each Amazon Web Services account.

*/ inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); } /** *

An ID for the data source. This ID is unique per Amazon Web Services Region * for each Amazon Web Services account.

*/ inline CreateDataSourceRequest& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;} /** *

An ID for the data source. This ID is unique per Amazon Web Services Region * for each Amazon Web Services account.

*/ inline CreateDataSourceRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;} /** *

An ID for the data source. This ID is unique per Amazon Web Services Region * for each Amazon Web Services account.

*/ inline CreateDataSourceRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;} /** *

A display name for the data source.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A display name for the data source.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A display name for the data source.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A display name for the data source.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A display name for the data source.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A display name for the data source.

*/ inline CreateDataSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A display name for the data source.

*/ inline CreateDataSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A display name for the data source.

*/ inline CreateDataSourceRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The type of the data source. To return a list of all data sources, use * ListDataSources.

Use AMAZON_ELASTICSEARCH for * Amazon OpenSearch Service.

*/ inline const DataSourceType& GetType() const{ return m_type; } /** *

The type of the data source. To return a list of all data sources, use * ListDataSources.

Use AMAZON_ELASTICSEARCH for * Amazon OpenSearch Service.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the data source. To return a list of all data sources, use * ListDataSources.

Use AMAZON_ELASTICSEARCH for * Amazon OpenSearch Service.

*/ inline void SetType(const DataSourceType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the data source. To return a list of all data sources, use * ListDataSources.

Use AMAZON_ELASTICSEARCH for * Amazon OpenSearch Service.

*/ inline void SetType(DataSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the data source. To return a list of all data sources, use * ListDataSources.

Use AMAZON_ELASTICSEARCH for * Amazon OpenSearch Service.

*/ inline CreateDataSourceRequest& WithType(const DataSourceType& value) { SetType(value); return *this;} /** *

The type of the data source. To return a list of all data sources, use * ListDataSources.

Use AMAZON_ELASTICSEARCH for * Amazon OpenSearch Service.

*/ inline CreateDataSourceRequest& WithType(DataSourceType&& value) { SetType(std::move(value)); return *this;} /** *

The parameters that Amazon QuickSight uses to connect to your underlying * source.

*/ inline const DataSourceParameters& GetDataSourceParameters() const{ return m_dataSourceParameters; } /** *

The parameters that Amazon QuickSight uses to connect to your underlying * source.

*/ inline bool DataSourceParametersHasBeenSet() const { return m_dataSourceParametersHasBeenSet; } /** *

The parameters that Amazon QuickSight uses to connect to your underlying * source.

*/ inline void SetDataSourceParameters(const DataSourceParameters& value) { m_dataSourceParametersHasBeenSet = true; m_dataSourceParameters = value; } /** *

The parameters that Amazon QuickSight uses to connect to your underlying * source.

*/ inline void SetDataSourceParameters(DataSourceParameters&& value) { m_dataSourceParametersHasBeenSet = true; m_dataSourceParameters = std::move(value); } /** *

The parameters that Amazon QuickSight uses to connect to your underlying * source.

*/ inline CreateDataSourceRequest& WithDataSourceParameters(const DataSourceParameters& value) { SetDataSourceParameters(value); return *this;} /** *

The parameters that Amazon QuickSight uses to connect to your underlying * source.

*/ inline CreateDataSourceRequest& WithDataSourceParameters(DataSourceParameters&& value) { SetDataSourceParameters(std::move(value)); return *this;} /** *

The credentials Amazon QuickSight that uses to connect to your underlying * source. Currently, only credentials based on user name and password are * supported.

*/ inline const DataSourceCredentials& GetCredentials() const{ return m_credentials; } /** *

The credentials Amazon QuickSight that uses to connect to your underlying * source. Currently, only credentials based on user name and password are * supported.

*/ inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; } /** *

The credentials Amazon QuickSight that uses to connect to your underlying * source. Currently, only credentials based on user name and password are * supported.

*/ inline void SetCredentials(const DataSourceCredentials& value) { m_credentialsHasBeenSet = true; m_credentials = value; } /** *

The credentials Amazon QuickSight that uses to connect to your underlying * source. Currently, only credentials based on user name and password are * supported.

*/ inline void SetCredentials(DataSourceCredentials&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); } /** *

The credentials Amazon QuickSight that uses to connect to your underlying * source. Currently, only credentials based on user name and password are * supported.

*/ inline CreateDataSourceRequest& WithCredentials(const DataSourceCredentials& value) { SetCredentials(value); return *this;} /** *

The credentials Amazon QuickSight that uses to connect to your underlying * source. Currently, only credentials based on user name and password are * supported.

*/ inline CreateDataSourceRequest& WithCredentials(DataSourceCredentials&& value) { SetCredentials(std::move(value)); return *this;} /** *

A list of resource permissions on the data source.

*/ inline const Aws::Vector& GetPermissions() const{ return m_permissions; } /** *

A list of resource permissions on the data source.

*/ inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; } /** *

A list of resource permissions on the data source.

*/ inline void SetPermissions(const Aws::Vector& value) { m_permissionsHasBeenSet = true; m_permissions = value; } /** *

A list of resource permissions on the data source.

*/ inline void SetPermissions(Aws::Vector&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); } /** *

A list of resource permissions on the data source.

*/ inline CreateDataSourceRequest& WithPermissions(const Aws::Vector& value) { SetPermissions(value); return *this;} /** *

A list of resource permissions on the data source.

*/ inline CreateDataSourceRequest& WithPermissions(Aws::Vector&& value) { SetPermissions(std::move(value)); return *this;} /** *

A list of resource permissions on the data source.

*/ inline CreateDataSourceRequest& AddPermissions(const ResourcePermission& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; } /** *

A list of resource permissions on the data source.

*/ inline CreateDataSourceRequest& AddPermissions(ResourcePermission&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; } /** *

Use this parameter only when you want Amazon QuickSight to use a VPC * connection when connecting to your underlying source.

*/ inline const VpcConnectionProperties& GetVpcConnectionProperties() const{ return m_vpcConnectionProperties; } /** *

Use this parameter only when you want Amazon QuickSight to use a VPC * connection when connecting to your underlying source.

*/ inline bool VpcConnectionPropertiesHasBeenSet() const { return m_vpcConnectionPropertiesHasBeenSet; } /** *

Use this parameter only when you want Amazon QuickSight to use a VPC * connection when connecting to your underlying source.

*/ inline void SetVpcConnectionProperties(const VpcConnectionProperties& value) { m_vpcConnectionPropertiesHasBeenSet = true; m_vpcConnectionProperties = value; } /** *

Use this parameter only when you want Amazon QuickSight to use a VPC * connection when connecting to your underlying source.

*/ inline void SetVpcConnectionProperties(VpcConnectionProperties&& value) { m_vpcConnectionPropertiesHasBeenSet = true; m_vpcConnectionProperties = std::move(value); } /** *

Use this parameter only when you want Amazon QuickSight to use a VPC * connection when connecting to your underlying source.

*/ inline CreateDataSourceRequest& WithVpcConnectionProperties(const VpcConnectionProperties& value) { SetVpcConnectionProperties(value); return *this;} /** *

Use this parameter only when you want Amazon QuickSight to use a VPC * connection when connecting to your underlying source.

*/ inline CreateDataSourceRequest& WithVpcConnectionProperties(VpcConnectionProperties&& value) { SetVpcConnectionProperties(std::move(value)); return *this;} /** *

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight * connects to your underlying source.

*/ inline const SslProperties& GetSslProperties() const{ return m_sslProperties; } /** *

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight * connects to your underlying source.

*/ inline bool SslPropertiesHasBeenSet() const { return m_sslPropertiesHasBeenSet; } /** *

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight * connects to your underlying source.

*/ inline void SetSslProperties(const SslProperties& value) { m_sslPropertiesHasBeenSet = true; m_sslProperties = value; } /** *

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight * connects to your underlying source.

*/ inline void SetSslProperties(SslProperties&& value) { m_sslPropertiesHasBeenSet = true; m_sslProperties = std::move(value); } /** *

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight * connects to your underlying source.

*/ inline CreateDataSourceRequest& WithSslProperties(const SslProperties& value) { SetSslProperties(value); return *this;} /** *

Secure Socket Layer (SSL) properties that apply when Amazon QuickSight * connects to your underlying source.

*/ inline CreateDataSourceRequest& WithSslProperties(SslProperties&& value) { SetSslProperties(std::move(value)); return *this;} /** *

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

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

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

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

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

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

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

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

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

*/ inline CreateDataSourceRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

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

*/ inline CreateDataSourceRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

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

*/ inline CreateDataSourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

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

*/ inline CreateDataSourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_dataSourceId; bool m_dataSourceIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; DataSourceType m_type; bool m_typeHasBeenSet = false; DataSourceParameters m_dataSourceParameters; bool m_dataSourceParametersHasBeenSet = false; DataSourceCredentials m_credentials; bool m_credentialsHasBeenSet = false; Aws::Vector m_permissions; bool m_permissionsHasBeenSet = false; VpcConnectionProperties m_vpcConnectionProperties; bool m_vpcConnectionPropertiesHasBeenSet = false; SslProperties m_sslProperties; bool m_sslPropertiesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws