AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CreateEnvironmentRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpacesRequest.h>
11#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
12#include <aws/migration-hub-refactor-spaces/model/NetworkFabricType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace MigrationHubRefactorSpaces {
18namespace Model {
19
23 public:
24 AWS_MIGRATIONHUBREFACTORSPACES_API CreateEnvironmentRequest() = 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 "CreateEnvironment"; }
31
32 AWS_MIGRATIONHUBREFACTORSPACES_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetClientToken() const { return m_clientToken; }
40 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
41 template <typename ClientTokenT = Aws::String>
42 void SetClientToken(ClientTokenT&& value) {
43 m_clientTokenHasBeenSet = true;
44 m_clientToken = std::forward<ClientTokenT>(value);
45 }
46 template <typename ClientTokenT = Aws::String>
48 SetClientToken(std::forward<ClientTokenT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline NetworkFabricType GetNetworkFabricType() const { return m_networkFabricType; }
94 inline bool NetworkFabricTypeHasBeenSet() const { return m_networkFabricTypeHasBeenSet; }
96 m_networkFabricTypeHasBeenSet = true;
97 m_networkFabricType = value;
98 }
101 return *this;
102 }
104
106
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 void SetTags(TagsT&& value) {
114 m_tagsHasBeenSet = true;
115 m_tags = std::forward<TagsT>(value);
116 }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 SetTags(std::forward<TagsT>(value));
120 return *this;
121 }
122 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
123 CreateEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
126 return *this;
127 }
129 private:
131
132 Aws::String m_description;
133
134 Aws::String m_name;
135
137
139 bool m_clientTokenHasBeenSet = true;
140 bool m_descriptionHasBeenSet = false;
141 bool m_nameHasBeenSet = false;
142 bool m_networkFabricTypeHasBeenSet = false;
143 bool m_tagsHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace MigrationHubRefactorSpaces
148} // namespace Aws
CreateEnvironmentRequest & WithClientToken(ClientTokenT &&value)
CreateEnvironmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API Aws::String SerializePayload() const override
CreateEnvironmentRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MIGRATIONHUBREFACTORSPACES_API CreateEnvironmentRequest()=default
CreateEnvironmentRequest & WithNetworkFabricType(NetworkFabricType 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