/* * 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 ssm-incidents-2018-05-10.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.SSMIncidents.Model { /// /// The set of Amazon Web Services Region that your Incident Manager data will be replicated /// to and the KMS key used to encrypt the data. /// public partial class ReplicationSet { private string _arn; private string _createdBy; private DateTime? _createdTime; private bool? _deletionProtected; private string _lastModifiedBy; private DateTime? _lastModifiedTime; private Dictionary _regionMap = new Dictionary(); private ReplicationSetStatus _status; /// /// Gets and sets the property Arn. /// /// The Amazon Resource Name (ARN) of the replication set. /// /// [AWSProperty(Min=0, Max=1000)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property CreatedBy. /// /// Details about who created the replication set. /// /// [AWSProperty(Required=true, Min=0, Max=1000)] public string CreatedBy { get { return this._createdBy; } set { this._createdBy = value; } } // Check to see if CreatedBy property is set internal bool IsSetCreatedBy() { return this._createdBy != null; } /// /// Gets and sets the property CreatedTime. /// /// When the replication set was created. /// /// [AWSProperty(Required=true)] public DateTime CreatedTime { get { return this._createdTime.GetValueOrDefault(); } set { this._createdTime = value; } } // Check to see if CreatedTime property is set internal bool IsSetCreatedTime() { return this._createdTime.HasValue; } /// /// Gets and sets the property DeletionProtected. /// /// Determines if the replication set deletion protection is enabled or not. If deletion /// protection is enabled, you can't delete the last Amazon Web Services Region in the /// replication set. /// /// [AWSProperty(Required=true)] public bool DeletionProtected { get { return this._deletionProtected.GetValueOrDefault(); } set { this._deletionProtected = value; } } // Check to see if DeletionProtected property is set internal bool IsSetDeletionProtected() { return this._deletionProtected.HasValue; } /// /// Gets and sets the property LastModifiedBy. /// /// Who last modified the replication set. /// /// [AWSProperty(Required=true, Min=0, Max=1000)] public string LastModifiedBy { get { return this._lastModifiedBy; } set { this._lastModifiedBy = value; } } // Check to see if LastModifiedBy property is set internal bool IsSetLastModifiedBy() { return this._lastModifiedBy != null; } /// /// Gets and sets the property LastModifiedTime. /// /// When the replication set was last updated. /// /// [AWSProperty(Required=true)] public DateTime LastModifiedTime { get { return this._lastModifiedTime.GetValueOrDefault(); } set { this._lastModifiedTime = value; } } // Check to see if LastModifiedTime property is set internal bool IsSetLastModifiedTime() { return this._lastModifiedTime.HasValue; } /// /// Gets and sets the property RegionMap. /// /// The map between each Amazon Web Services Region in your replication set and the KMS /// key that's used to encrypt the data in that Region. /// /// [AWSProperty(Required=true)] public Dictionary RegionMap { get { return this._regionMap; } set { this._regionMap = value; } } // Check to see if RegionMap property is set internal bool IsSetRegionMap() { return this._regionMap != null && this._regionMap.Count > 0; } /// /// Gets and sets the property Status. /// /// The status of the replication set. If the replication set is still pending, you can't /// use Incident Manager functionality. /// /// [AWSProperty(Required=true)] public ReplicationSetStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }