AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CreateReplicationSetRequest.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/ssm-incidents/SSMIncidentsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/ssm-incidents/model/RegionMapInputValue.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace SSMIncidents
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SSMINCIDENTS_API CreateReplicationSetRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateReplicationSet"; }
34
35 AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetClientToken() const { return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 template<typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
47 template<typename ClientTokenT = Aws::String>
48 CreateReplicationSetRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
50
52
56 inline const Aws::Map<Aws::String, RegionMapInputValue>& GetRegions() const { return m_regions; }
57 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
58 template<typename RegionsT = Aws::Map<Aws::String, RegionMapInputValue>>
59 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
60 template<typename RegionsT = Aws::Map<Aws::String, RegionMapInputValue>>
61 CreateReplicationSetRequest& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
62 template<typename RegionsKeyT = Aws::String, typename RegionsValueT = RegionMapInputValue>
63 CreateReplicationSetRequest& AddRegions(RegionsKeyT&& key, RegionsValueT&& value) {
64 m_regionsHasBeenSet = true; m_regions.emplace(std::forward<RegionsKeyT>(key), std::forward<RegionsValueT>(value)); return *this;
65 }
67
69
72 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
75 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
76 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
77 CreateReplicationSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
78 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
79 CreateReplicationSetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
80 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
81 }
83 private:
84
86 bool m_clientTokenHasBeenSet = true;
87
89 bool m_regionsHasBeenSet = false;
90
92 bool m_tagsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace SSMIncidents
97} // namespace Aws
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateReplicationSetRequest & WithRegions(RegionsT &&value)
const Aws::Map< Aws::String, RegionMapInputValue > & GetRegions() const
CreateReplicationSetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateReplicationSetRequest & WithClientToken(ClientTokenT &&value)
CreateReplicationSetRequest & AddRegions(RegionsKeyT &&key, RegionsValueT &&value)
CreateReplicationSetRequest & WithTags(TagsT &&value)
AWS_SSMINCIDENTS_API CreateReplicationSetRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String