/** * 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 SSMIncidents { namespace Model { /** */ class CreateReplicationSetRequest : public SSMIncidentsRequest { public: AWS_SSMINCIDENTS_API CreateReplicationSetRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateReplicationSet"; } AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override; /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline CreateReplicationSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline CreateReplicationSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline CreateReplicationSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The Regions that Incident Manager replicates your data to. You can have up to * three Regions in your replication set.

*/ inline const Aws::Map& GetRegions() const{ return m_regions; } /** *

The Regions that Incident Manager replicates your data to. You can have up to * three Regions in your replication set.

*/ inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; } /** *

The Regions that Incident Manager replicates your data to. You can have up to * three Regions in your replication set.

*/ inline void SetRegions(const Aws::Map& value) { m_regionsHasBeenSet = true; m_regions = value; } /** *

The Regions that Incident Manager replicates your data to. You can have up to * three Regions in your replication set.

*/ inline void SetRegions(Aws::Map&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); } /** *

The Regions that Incident Manager replicates your data to. You can have up to * three Regions in your replication set.

*/ inline CreateReplicationSetRequest& WithRegions(const Aws::Map& value) { SetRegions(value); return *this;} /** *

The Regions that Incident Manager replicates your data to. You can have up to * three Regions in your replication set.

*/ inline CreateReplicationSetRequest& WithRegions(Aws::Map&& value) { SetRegions(std::move(value)); return *this;} /** *

The Regions that Incident Manager replicates your data to. You can have up to * three Regions in your replication set.

*/ inline CreateReplicationSetRequest& AddRegions(const Aws::String& key, const RegionMapInputValue& value) { m_regionsHasBeenSet = true; m_regions.emplace(key, value); return *this; } /** *

The Regions that Incident Manager replicates your data to. You can have up to * three Regions in your replication set.

*/ inline CreateReplicationSetRequest& AddRegions(Aws::String&& key, const RegionMapInputValue& value) { m_regionsHasBeenSet = true; m_regions.emplace(std::move(key), value); return *this; } /** *

The Regions that Incident Manager replicates your data to. You can have up to * three Regions in your replication set.

*/ inline CreateReplicationSetRequest& AddRegions(const Aws::String& key, RegionMapInputValue&& value) { m_regionsHasBeenSet = true; m_regions.emplace(key, std::move(value)); return *this; } /** *

The Regions that Incident Manager replicates your data to. You can have up to * three Regions in your replication set.

*/ inline CreateReplicationSetRequest& AddRegions(Aws::String&& key, RegionMapInputValue&& value) { m_regionsHasBeenSet = true; m_regions.emplace(std::move(key), std::move(value)); return *this; } /** *

The Regions that Incident Manager replicates your data to. You can have up to * three Regions in your replication set.

*/ inline CreateReplicationSetRequest& AddRegions(const char* key, RegionMapInputValue&& value) { m_regionsHasBeenSet = true; m_regions.emplace(key, std::move(value)); return *this; } /** *

The Regions that Incident Manager replicates your data to. You can have up to * three Regions in your replication set.

*/ inline CreateReplicationSetRequest& AddRegions(const char* key, const RegionMapInputValue& value) { m_regionsHasBeenSet = true; m_regions.emplace(key, value); return *this; } /** *

A list of tags to add to the replication set.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A list of tags to add to the replication set.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags to add to the replication set.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags to add to the replication set.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags to add to the replication set.

*/ inline CreateReplicationSetRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A list of tags to add to the replication set.

*/ inline CreateReplicationSetRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags to add to the replication set.

*/ inline CreateReplicationSetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A list of tags to add to the replication set.

*/ inline CreateReplicationSetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of tags to add to the replication set.

*/ inline CreateReplicationSetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of tags to add to the replication set.

*/ inline CreateReplicationSetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of tags to add to the replication set.

*/ inline CreateReplicationSetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of tags to add to the replication set.

*/ inline CreateReplicationSetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of tags to add to the replication set.

*/ inline CreateReplicationSetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Map m_regions; bool m_regionsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws