/* * 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 { /// /// Source details for an Amazon S3 data access asset. /// public partial class S3DataAccessAssetSourceEntry { private string _bucket; private List _keyPrefixes = new List(); private List _keys = new List(); private List _kmsKeysToGrant = new List(); /// /// Gets and sets the property Bucket. /// /// The Amazon S3 bucket used for hosting shared data in the Amazon 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. /// /// Organizes Amazon S3 asset key prefixes stored in an Amazon S3 bucket. /// /// 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. /// /// The keys used to create the Amazon S3 data access. /// /// 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. /// /// [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; } } }