/* * 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 dataexchange-2017-07-25.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.DataExchange.Model { /// /// The Amazon S3 data access that is the asset. /// public partial class S3DataAccessAsset { private string _bucket; private List _keyPrefixes = new List(); private List _keys = new List(); private List _kmsKeysToGrant = new List(); private string _s3AccessPointAlias; private string _s3AccessPointArn; /// /// Gets and sets the property Bucket. /// /// The Amazon S3 bucket hosting data to be shared in the S3 data access. /// /// [AWSProperty(Required=true)] public string Bucket { get { return this._bucket; } set { this._bucket = value; } } // Check to see if Bucket property is set internal bool IsSetBucket() { return this._bucket != null; } /// /// Gets and sets the property KeyPrefixes. /// /// The Amazon S3 bucket used for hosting shared data in the Amazon S3 data access. /// /// public List KeyPrefixes { get { return this._keyPrefixes; } set { this._keyPrefixes = value; } } // Check to see if KeyPrefixes property is set internal bool IsSetKeyPrefixes() { return this._keyPrefixes != null && this._keyPrefixes.Count > 0; } /// /// Gets and sets the property Keys. /// /// S3 keys made available using this asset. /// /// public List Keys { get { return this._keys; } set { this._keys = value; } } // Check to see if Keys property is set internal bool IsSetKeys() { return this._keys != null && this._keys.Count > 0; } /// /// Gets and sets the property KmsKeysToGrant. /// /// List of AWS KMS CMKs (Key Management System Customer Managed Keys) and ARNs used /// to encrypt S3 objects being shared in this S3 Data Access asset. Providers must include /// all AWS KMS keys used to encrypt these shared S3 objects. /// /// [AWSProperty(Min=1, Max=10)] public List KmsKeysToGrant { get { return this._kmsKeysToGrant; } set { this._kmsKeysToGrant = value; } } // Check to see if KmsKeysToGrant property is set internal bool IsSetKmsKeysToGrant() { return this._kmsKeysToGrant != null && this._kmsKeysToGrant.Count > 0; } /// /// Gets and sets the property S3AccessPointAlias. /// /// The automatically-generated bucket-style alias for your Amazon S3 Access Point. Customers /// can access their entitled data using the S3 Access Point alias. /// /// public string S3AccessPointAlias { get { return this._s3AccessPointAlias; } set { this._s3AccessPointAlias = value; } } // Check to see if S3AccessPointAlias property is set internal bool IsSetS3AccessPointAlias() { return this._s3AccessPointAlias != null; } /// /// Gets and sets the property S3AccessPointArn. /// /// The ARN for your Amazon S3 Access Point. Customers can also access their entitled /// data using the S3 Access Point ARN. /// /// public string S3AccessPointArn { get { return this._s3AccessPointArn; } set { this._s3AccessPointArn = value; } } // Check to see if S3AccessPointArn property is set internal bool IsSetS3AccessPointArn() { return this._s3AccessPointArn != null; } } }