AWS SDK for C++

AWS SDK for C++ Version 1.11.894

Loading...
Searching...
No Matches
CreateResiliencyGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/directconnect/DirectConnectRequest.h>
10#include <aws/directconnect/DirectConnect_EXPORTS.h>
11#include <aws/directconnect/model/ResiliencyModel.h>
12#include <aws/directconnect/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DirectConnect {
18namespace Model {
19
23 public:
24 AWS_DIRECTCONNECT_API CreateResiliencyGroupRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateResiliencyGroup"; }
31
32 AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override;
33
34 AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetResiliencyGroupName() const { return m_resiliencyGroupName; }
41 inline bool ResiliencyGroupNameHasBeenSet() const { return m_resiliencyGroupNameHasBeenSet; }
42 template <typename ResiliencyGroupNameT = Aws::String>
43 void SetResiliencyGroupName(ResiliencyGroupNameT&& value) {
44 m_resiliencyGroupNameHasBeenSet = true;
45 m_resiliencyGroupName = std::forward<ResiliencyGroupNameT>(value);
46 }
47 template <typename ResiliencyGroupNameT = Aws::String>
49 SetResiliencyGroupName(std::forward<ResiliencyGroupNameT>(value));
50 return *this;
51 }
53
55
60 inline ResiliencyModel GetIntendedResiliencyModel() const { return m_intendedResiliencyModel; }
61 inline bool IntendedResiliencyModelHasBeenSet() const { return m_intendedResiliencyModelHasBeenSet; }
63 m_intendedResiliencyModelHasBeenSet = true;
64 m_intendedResiliencyModel = value;
65 }
68 return *this;
69 }
71
73
77 inline const Aws::String& GetClientToken() const { return m_clientToken; }
78 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
79 template <typename ClientTokenT = Aws::String>
80 void SetClientToken(ClientTokenT&& value) {
81 m_clientTokenHasBeenSet = true;
82 m_clientToken = std::forward<ClientTokenT>(value);
83 }
84 template <typename ClientTokenT = Aws::String>
86 SetClientToken(std::forward<ClientTokenT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template <typename TagsT = Aws::Vector<Tag>>
98 void SetTags(TagsT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags = std::forward<TagsT>(value);
101 }
102 template <typename TagsT = Aws::Vector<Tag>>
104 SetTags(std::forward<TagsT>(value));
105 return *this;
106 }
107 template <typename TagsT = Tag>
109 m_tagsHasBeenSet = true;
110 m_tags.emplace_back(std::forward<TagsT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_resiliencyGroupName;
116
117 ResiliencyModel m_intendedResiliencyModel{ResiliencyModel::NOT_SET};
118
119 Aws::String m_clientToken;
120
121 Aws::Vector<Tag> m_tags;
122 bool m_resiliencyGroupNameHasBeenSet = false;
123 bool m_intendedResiliencyModelHasBeenSet = false;
124 bool m_clientTokenHasBeenSet = false;
125 bool m_tagsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace DirectConnect
130} // namespace Aws
CreateResiliencyGroupRequest & WithClientToken(ClientTokenT &&value)
AWS_DIRECTCONNECT_API CreateResiliencyGroupRequest()=default
CreateResiliencyGroupRequest & WithIntendedResiliencyModel(ResiliencyModel value)
CreateResiliencyGroupRequest & WithResiliencyGroupName(ResiliencyGroupNameT &&value)
AWS_DIRECTCONNECT_API Aws::String SerializePayload() const override
AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector