AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
CreateTrafficDistributionGroupRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API CreateTrafficDistributionGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateTrafficDistributionGroup"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
75 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
76 template <typename InstanceIdT = Aws::String>
77 void SetInstanceId(InstanceIdT&& value) {
78 m_instanceIdHasBeenSet = true;
79 m_instanceId = std::forward<InstanceIdT>(value);
80 }
81 template <typename InstanceIdT = Aws::String>
83 SetInstanceId(std::forward<InstanceIdT>(value));
84 return *this;
85 }
87
89
96 inline const Aws::String& GetClientToken() const { return m_clientToken; }
97 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
98 template <typename ClientTokenT = Aws::String>
99 void SetClientToken(ClientTokenT&& value) {
100 m_clientTokenHasBeenSet = true;
101 m_clientToken = std::forward<ClientTokenT>(value);
102 }
103 template <typename ClientTokenT = Aws::String>
105 SetClientToken(std::forward<ClientTokenT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 void SetTags(TagsT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags = std::forward<TagsT>(value);
121 }
122 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 SetTags(std::forward<TagsT>(value));
125 return *this;
126 }
127 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
128 CreateTrafficDistributionGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::String m_description;
139 bool m_descriptionHasBeenSet = false;
140
141 Aws::String m_instanceId;
142 bool m_instanceIdHasBeenSet = false;
143
145 bool m_clientTokenHasBeenSet = true;
146
148 bool m_tagsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace Connect
153} // namespace Aws
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateTrafficDistributionGroupRequest & WithInstanceId(InstanceIdT &&value)
CreateTrafficDistributionGroupRequest & WithDescription(DescriptionT &&value)
CreateTrafficDistributionGroupRequest & WithTags(TagsT &&value)
CreateTrafficDistributionGroupRequest & WithClientToken(ClientTokenT &&value)
CreateTrafficDistributionGroupRequest & WithName(NameT &&value)
CreateTrafficDistributionGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
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