/* * 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 lightsail-2016-11-28.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.Lightsail.Model { /// /// Container for the parameters to the CreateBucket operation. /// Creates an Amazon Lightsail bucket. /// /// /// /// A bucket is a cloud storage resource available in the Lightsail object storage service. /// Use buckets to store objects such as data and its descriptive metadata. For more information /// about buckets, see Buckets /// in Amazon Lightsail in the Amazon Lightsail Developer Guide. /// /// public partial class CreateBucketRequest : AmazonLightsailRequest { private string _bucketName; private string _bundleId; private bool? _enableObjectVersioning; private List _tags = new List(); /// /// Gets and sets the property BucketName. /// /// The name for the bucket. /// /// /// /// For more information about bucket names, see Bucket /// naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide. /// /// [AWSProperty(Required=true, Min=3, Max=54)] public string BucketName { get { return this._bucketName; } set { this._bucketName = value; } } // Check to see if BucketName property is set internal bool IsSetBucketName() { return this._bucketName != null; } /// /// Gets and sets the property BundleId. /// /// The ID of the bundle to use for the bucket. /// /// /// /// A bucket bundle specifies the monthly cost, storage space, and data transfer quota /// for a bucket. /// /// /// /// Use the GetBucketBundles /// action to get a list of bundle IDs that you can specify. /// /// /// /// Use the UpdateBucketBundle /// action to change the bundle after the bucket is created. /// /// [AWSProperty(Required=true)] public string BundleId { get { return this._bundleId; } set { this._bundleId = value; } } // Check to see if BundleId property is set internal bool IsSetBundleId() { return this._bundleId != null; } /// /// Gets and sets the property EnableObjectVersioning. /// /// A Boolean value that indicates whether to enable versioning of objects in the bucket. /// /// /// /// For more information about versioning, see Enabling /// and suspending object versioning in a bucket in Amazon Lightsail in the Amazon /// Lightsail Developer Guide. /// /// public bool EnableObjectVersioning { get { return this._enableObjectVersioning.GetValueOrDefault(); } set { this._enableObjectVersioning = value; } } // Check to see if EnableObjectVersioning property is set internal bool IsSetEnableObjectVersioning() { return this._enableObjectVersioning.HasValue; } /// /// Gets and sets the property Tags. /// /// The tag keys and optional values to add to the bucket during creation. /// /// /// /// Use the TagResource /// action to tag the bucket after it's created. /// /// 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; } } }