/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the quicksight-2018-04-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.QuickSight.Model { /// /// Container for the parameters to the CreateDataSource operation. /// Creates a data source. /// public partial class CreateDataSourceRequest : AmazonQuickSightRequest { private string _awsAccountId; private DataSourceCredentials _credentials; private string _dataSourceId; private DataSourceParameters _dataSourceParameters; private string _name; private List _permissions = new List(); private SslProperties _sslProperties; private List _tags = new List(); private DataSourceType _type; private VpcConnectionProperties _vpcConnectionProperties; /// /// Gets and sets the property AwsAccountId. /// /// The Amazon Web Services account ID. /// /// [AWSProperty(Required=true, Min=12, Max=12)] public string AwsAccountId { get { return this._awsAccountId; } set { this._awsAccountId = value; } } // Check to see if AwsAccountId property is set internal bool IsSetAwsAccountId() { return this._awsAccountId != null; } /// /// Gets and sets the property Credentials. /// /// The credentials Amazon QuickSight that uses to connect to your underlying source. /// Currently, only credentials based on user name and password are supported. /// /// [AWSProperty(Sensitive=true)] public DataSourceCredentials Credentials { get { return this._credentials; } set { this._credentials = value; } } // Check to see if Credentials property is set internal bool IsSetCredentials() { return this._credentials != null; } /// /// Gets and sets the property DataSourceId. /// /// An ID for the data source. This ID is unique per Amazon Web Services Region for each /// Amazon Web Services account. /// /// [AWSProperty(Required=true)] public string DataSourceId { get { return this._dataSourceId; } set { this._dataSourceId = value; } } // Check to see if DataSourceId property is set internal bool IsSetDataSourceId() { return this._dataSourceId != null; } /// /// Gets and sets the property DataSourceParameters. /// /// The parameters that Amazon QuickSight uses to connect to your underlying source. /// /// public DataSourceParameters DataSourceParameters { get { return this._dataSourceParameters; } set { this._dataSourceParameters = value; } } // Check to see if DataSourceParameters property is set internal bool IsSetDataSourceParameters() { return this._dataSourceParameters != null; } /// /// Gets and sets the property Name. /// /// A display name for the data source. /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Permissions. /// /// A list of resource permissions on the data source. /// /// [AWSProperty(Min=1, Max=64)] public List Permissions { get { return this._permissions; } set { this._permissions = value; } } // Check to see if Permissions property is set internal bool IsSetPermissions() { return this._permissions != null && this._permissions.Count > 0; } /// /// Gets and sets the property SslProperties. /// /// Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to /// your underlying source. /// /// public SslProperties SslProperties { get { return this._sslProperties; } set { this._sslProperties = value; } } // Check to see if SslProperties property is set internal bool IsSetSslProperties() { return this._sslProperties != null; } /// /// Gets and sets the property Tags. /// /// Contains a map of the key-value pairs for the resource tag or tags assigned to the /// data source. /// /// [AWSProperty(Min=1, Max=200)] public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property Type. /// /// The type of the data source. To return a list of all data sources, use ListDataSources. /// /// /// /// Use AMAZON_ELASTICSEARCH for Amazon OpenSearch Service. /// /// [AWSProperty(Required=true)] public DataSourceType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property VpcConnectionProperties. /// /// Use this parameter only when you want Amazon QuickSight to use a VPC connection when /// connecting to your underlying source. /// /// public VpcConnectionProperties VpcConnectionProperties { get { return this._vpcConnectionProperties; } set { this._vpcConnectionProperties = value; } } // Check to see if VpcConnectionProperties property is set internal bool IsSetVpcConnectionProperties() { return this._vpcConnectionProperties != null; } } }