AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateEnvironmentRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfigRequest.h>
8#include <aws/appconfig/AppConfig_EXPORTS.h>
9#include <aws/appconfig/model/Monitor.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AppConfig {
18namespace Model {
19
23 public:
24 AWS_APPCONFIG_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_APPCONFIG_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
39 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
40 template <typename ApplicationIdT = Aws::String>
41 void SetApplicationId(ApplicationIdT&& value) {
42 m_applicationIdHasBeenSet = true;
43 m_applicationId = std::forward<ApplicationIdT>(value);
44 }
45 template <typename ApplicationIdT = Aws::String>
47 SetApplicationId(std::forward<ApplicationIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<Monitor>& GetMonitors() const { return m_monitors; }
93 inline bool MonitorsHasBeenSet() const { return m_monitorsHasBeenSet; }
94 template <typename MonitorsT = Aws::Vector<Monitor>>
95 void SetMonitors(MonitorsT&& value) {
96 m_monitorsHasBeenSet = true;
97 m_monitors = std::forward<MonitorsT>(value);
98 }
99 template <typename MonitorsT = Aws::Vector<Monitor>>
101 SetMonitors(std::forward<MonitorsT>(value));
102 return *this;
103 }
104 template <typename MonitorsT = Monitor>
106 m_monitorsHasBeenSet = true;
107 m_monitors.emplace_back(std::forward<MonitorsT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags = std::forward<TagsT>(value);
124 }
125 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 SetTags(std::forward<TagsT>(value));
128 return *this;
129 }
130 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
131 CreateEnvironmentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_applicationId;
139
140 Aws::String m_name;
141
142 Aws::String m_description;
143
144 Aws::Vector<Monitor> m_monitors;
145
147 bool m_applicationIdHasBeenSet = false;
148 bool m_nameHasBeenSet = false;
149 bool m_descriptionHasBeenSet = false;
150 bool m_monitorsHasBeenSet = false;
151 bool m_tagsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace AppConfig
156} // namespace Aws
const Aws::Vector< Monitor > & GetMonitors() const
CreateEnvironmentRequest & WithApplicationId(ApplicationIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_APPCONFIG_API CreateEnvironmentRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateEnvironmentRequest & WithMonitors(MonitorsT &&value)
CreateEnvironmentRequest & WithDescription(DescriptionT &&value)
CreateEnvironmentRequest & AddMonitors(MonitorsT &&value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
CreateEnvironmentRequest & WithName(NameT &&value)
CreateEnvironmentRequest & WithTags(TagsT &&value)
CreateEnvironmentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector