/*
* 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
{
///
/// A data type representing an Amazon DocumentDB global cluster.
///
public partial class GlobalCluster
{
private string _databaseName;
private bool? _deletionProtection;
private string _engine;
private string _engineVersion;
private string _globalClusterArn;
private string _globalClusterIdentifier;
private List _globalClusterMembers = new List();
private string _globalClusterResourceId;
private string _status;
private bool? _storageEncrypted;
///
/// Gets and sets the property DatabaseName.
///
/// The default database name within the new global cluster.
///
///
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.
///
///
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 Amazon DocumentDB database engine used by the global 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.
///
/// Indicates the database engine version.
///
///
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 GlobalClusterArn.
///
/// The Amazon Resource Name (ARN) for the global cluster.
///
///
public string GlobalClusterArn
{
get { return this._globalClusterArn; }
set { this._globalClusterArn = value; }
}
// Check to see if GlobalClusterArn property is set
internal bool IsSetGlobalClusterArn()
{
return this._globalClusterArn != null;
}
///
/// Gets and sets the property GlobalClusterIdentifier.
///
/// Contains a user-supplied global cluster identifier. This identifier is the unique
/// key that identifies a global cluster.
///
///
[AWSProperty(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 GlobalClusterMembers.
///
/// The list of cluster IDs for secondary clusters within the global cluster. Currently
/// limited to one item.
///
///
public List GlobalClusterMembers
{
get { return this._globalClusterMembers; }
set { this._globalClusterMembers = value; }
}
// Check to see if GlobalClusterMembers property is set
internal bool IsSetGlobalClusterMembers()
{
return this._globalClusterMembers != null && this._globalClusterMembers.Count > 0;
}
///
/// Gets and sets the property GlobalClusterResourceId.
///
/// The Amazon Web Services Region-unique, immutable identifier for the global database
/// cluster. This identifier is found in CloudTrail log entries whenever the KMS customer
/// master key (CMK) for the cluster is accessed.
///
///
public string GlobalClusterResourceId
{
get { return this._globalClusterResourceId; }
set { this._globalClusterResourceId = value; }
}
// Check to see if GlobalClusterResourceId property is set
internal bool IsSetGlobalClusterResourceId()
{
return this._globalClusterResourceId != null;
}
///
/// Gets and sets the property Status.
///
/// Specifies the current state of this global cluster.
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property StorageEncrypted.
///
/// The storage encryption setting for the 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;
}
}
}