/* * 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 docdb-2014-10-31.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.DocDB.Model { /// /// Container for the parameters to the CreateGlobalCluster operation. /// Creates an Amazon DocumentDB global cluster that can span multiple multiple Amazon /// Web Services Regions. The global cluster contains one primary cluster with read-write /// capability, and up-to give read-only secondary clusters. Global clusters uses storage-based /// fast replication across regions with latencies less than one second, using dedicated /// infrastructure with no impact to your workload’s performance. /// /// /// /// You can create a global cluster that is initially empty, and then add a primary and /// a secondary to it. Or you can specify an existing cluster during the create operation, /// and this cluster becomes the primary of the global cluster. /// /// /// /// This action only applies to Amazon DocumentDB clusters. /// /// /// public partial class CreateGlobalClusterRequest : AmazonDocDBRequest { private string _databaseName; private bool? _deletionProtection; private string _engine; private string _engineVersion; private string _globalClusterIdentifier; private string _sourceDBClusterIdentifier; private bool? _storageEncrypted; /// /// Gets and sets the property DatabaseName. /// /// The name for your database of up to 64 alpha-numeric characters. If you do not provide /// a name, Amazon DocumentDB will not create a database in the global cluster you are /// creating. /// /// public string DatabaseName { get { return this._databaseName; } set { this._databaseName = value; } } // Check to see if DatabaseName property is set internal bool IsSetDatabaseName() { return this._databaseName != null; } /// /// Gets and sets the property DeletionProtection. /// /// The deletion protection setting for the new global cluster. The global cluster can't /// be deleted when deletion protection is enabled. /// /// public bool DeletionProtection { get { return this._deletionProtection.GetValueOrDefault(); } set { this._deletionProtection = value; } } // Check to see if DeletionProtection property is set internal bool IsSetDeletionProtection() { return this._deletionProtection.HasValue; } /// /// Gets and sets the property Engine. /// /// The name of the database engine to be used for this cluster. /// /// public string Engine { get { return this._engine; } set { this._engine = value; } } // Check to see if Engine property is set internal bool IsSetEngine() { return this._engine != null; } /// /// Gets and sets the property EngineVersion. /// /// The engine version of the global cluster. /// /// public string EngineVersion { get { return this._engineVersion; } set { this._engineVersion = value; } } // Check to see if EngineVersion property is set internal bool IsSetEngineVersion() { return this._engineVersion != null; } /// /// Gets and sets the property GlobalClusterIdentifier. /// /// The cluster identifier of the new global cluster. /// /// [AWSProperty(Required=true, Min=1, Max=255)] public string GlobalClusterIdentifier { get { return this._globalClusterIdentifier; } set { this._globalClusterIdentifier = value; } } // Check to see if GlobalClusterIdentifier property is set internal bool IsSetGlobalClusterIdentifier() { return this._globalClusterIdentifier != null; } /// /// Gets and sets the property SourceDBClusterIdentifier. /// /// The Amazon Resource Name (ARN) to use as the primary cluster of the global cluster. /// This parameter is optional. /// /// public string SourceDBClusterIdentifier { get { return this._sourceDBClusterIdentifier; } set { this._sourceDBClusterIdentifier = value; } } // Check to see if SourceDBClusterIdentifier property is set internal bool IsSetSourceDBClusterIdentifier() { return this._sourceDBClusterIdentifier != null; } /// /// Gets and sets the property StorageEncrypted. /// /// The storage encryption setting for the new global cluster. /// /// public bool StorageEncrypted { get { return this._storageEncrypted.GetValueOrDefault(); } set { this._storageEncrypted = value; } } // Check to see if StorageEncrypted property is set internal bool IsSetStorageEncrypted() { return this._storageEncrypted.HasValue; } } }