/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSMIncidents { namespace 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.

See * Also:

AWS * API Reference

*/ class ReplicationSet { public: AWS_SSMINCIDENTS_API ReplicationSet(); AWS_SSMINCIDENTS_API ReplicationSet(Aws::Utils::Json::JsonView jsonValue); AWS_SSMINCIDENTS_API ReplicationSet& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the replication set.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the replication set.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the replication set.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the replication set.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the replication set.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the replication set.

*/ inline ReplicationSet& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the replication set.

*/ inline ReplicationSet& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the replication set.

*/ inline ReplicationSet& WithArn(const char* value) { SetArn(value); return *this;} /** *

Details about who created the replication set.

*/ inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } /** *

Details about who created the replication set.

*/ inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } /** *

Details about who created the replication set.

*/ inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; } /** *

Details about who created the replication set.

*/ inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } /** *

Details about who created the replication set.

*/ inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); } /** *

Details about who created the replication set.

*/ inline ReplicationSet& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} /** *

Details about who created the replication set.

*/ inline ReplicationSet& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} /** *

Details about who created the replication set.

*/ inline ReplicationSet& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} /** *

When the replication set was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *

When the replication set was created.

*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *

When the replication set was created.

*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *

When the replication set was created.

*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *

When the replication set was created.

*/ inline ReplicationSet& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

When the replication set was created.

*/ inline ReplicationSet& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

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.

*/ inline bool GetDeletionProtected() const{ return m_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.

*/ inline bool DeletionProtectedHasBeenSet() const { return m_deletionProtectedHasBeenSet; } /** *

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.

*/ inline void SetDeletionProtected(bool value) { m_deletionProtectedHasBeenSet = true; m_deletionProtected = value; } /** *

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.

*/ inline ReplicationSet& WithDeletionProtected(bool value) { SetDeletionProtected(value); return *this;} /** *

Who last modified the replication set.

*/ inline const Aws::String& GetLastModifiedBy() const{ return m_lastModifiedBy; } /** *

Who last modified the replication set.

*/ inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; } /** *

Who last modified the replication set.

*/ inline void SetLastModifiedBy(const Aws::String& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; } /** *

Who last modified the replication set.

*/ inline void SetLastModifiedBy(Aws::String&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::move(value); } /** *

Who last modified the replication set.

*/ inline void SetLastModifiedBy(const char* value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy.assign(value); } /** *

Who last modified the replication set.

*/ inline ReplicationSet& WithLastModifiedBy(const Aws::String& value) { SetLastModifiedBy(value); return *this;} /** *

Who last modified the replication set.

*/ inline ReplicationSet& WithLastModifiedBy(Aws::String&& value) { SetLastModifiedBy(std::move(value)); return *this;} /** *

Who last modified the replication set.

*/ inline ReplicationSet& WithLastModifiedBy(const char* value) { SetLastModifiedBy(value); return *this;} /** *

When the replication set was last updated.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

When the replication set was last updated.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

When the replication set was last updated.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

When the replication set was last updated.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

When the replication set was last updated.

*/ inline ReplicationSet& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

When the replication set was last updated.

*/ inline ReplicationSet& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::Map& GetRegionMap() const{ return m_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.

*/ inline bool RegionMapHasBeenSet() const { return m_regionMapHasBeenSet; } /** *

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.

*/ inline void SetRegionMap(const Aws::Map& value) { m_regionMapHasBeenSet = true; m_regionMap = value; } /** *

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.

*/ inline void SetRegionMap(Aws::Map&& value) { m_regionMapHasBeenSet = true; m_regionMap = std::move(value); } /** *

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.

*/ inline ReplicationSet& WithRegionMap(const Aws::Map& value) { SetRegionMap(value); return *this;} /** *

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.

*/ inline ReplicationSet& WithRegionMap(Aws::Map&& value) { SetRegionMap(std::move(value)); return *this;} /** *

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.

*/ inline ReplicationSet& AddRegionMap(const Aws::String& key, const RegionInfo& value) { m_regionMapHasBeenSet = true; m_regionMap.emplace(key, value); return *this; } /** *

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.

*/ inline ReplicationSet& AddRegionMap(Aws::String&& key, const RegionInfo& value) { m_regionMapHasBeenSet = true; m_regionMap.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline ReplicationSet& AddRegionMap(const Aws::String& key, RegionInfo&& value) { m_regionMapHasBeenSet = true; m_regionMap.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline ReplicationSet& AddRegionMap(Aws::String&& key, RegionInfo&& value) { m_regionMapHasBeenSet = true; m_regionMap.emplace(std::move(key), std::move(value)); return *this; } /** *

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.

*/ inline ReplicationSet& AddRegionMap(const char* key, RegionInfo&& value) { m_regionMapHasBeenSet = true; m_regionMap.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline ReplicationSet& AddRegionMap(const char* key, const RegionInfo& value) { m_regionMapHasBeenSet = true; m_regionMap.emplace(key, value); return *this; } /** *

The status of the replication set. If the replication set is still pending, * you can't use Incident Manager functionality.

*/ inline const ReplicationSetStatus& GetStatus() const{ return m_status; } /** *

The status of the replication set. If the replication set is still pending, * you can't use Incident Manager functionality.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the replication set. If the replication set is still pending, * you can't use Incident Manager functionality.

*/ inline void SetStatus(const ReplicationSetStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the replication set. If the replication set is still pending, * you can't use Incident Manager functionality.

*/ inline void SetStatus(ReplicationSetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the replication set. If the replication set is still pending, * you can't use Incident Manager functionality.

*/ inline ReplicationSet& WithStatus(const ReplicationSetStatus& value) { SetStatus(value); return *this;} /** *

The status of the replication set. If the replication set is still pending, * you can't use Incident Manager functionality.

*/ inline ReplicationSet& WithStatus(ReplicationSetStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_createdBy; bool m_createdByHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; bool m_deletionProtected; bool m_deletionProtectedHasBeenSet = false; Aws::String m_lastModifiedBy; bool m_lastModifiedByHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; Aws::Map m_regionMap; bool m_regionMapHasBeenSet = false; ReplicationSetStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws