AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEnvironmentRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/AppConfigRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/appconfig/model/Monitor.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AppConfig
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_APPCONFIG_API CreateEnvironmentRequest();
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 "CreateEnvironment"; }
34
35 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
43 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
44 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
45 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
46 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
47 inline CreateEnvironmentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
48 inline CreateEnvironmentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
49 inline CreateEnvironmentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline CreateEnvironmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline CreateEnvironmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline CreateEnvironmentRequest& WithName(const char* value) { SetName(value); return *this;}
65
67
70 inline const Aws::String& GetDescription() const{ return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 inline CreateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 inline CreateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline CreateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
79
81
84 inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
85 inline bool MonitorsHasBeenSet() const { return m_monitorsHasBeenSet; }
86 inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitorsHasBeenSet = true; m_monitors = value; }
87 inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitorsHasBeenSet = true; m_monitors = std::move(value); }
88 inline CreateEnvironmentRequest& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
89 inline CreateEnvironmentRequest& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
90 inline CreateEnvironmentRequest& AddMonitors(const Monitor& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(value); return *this; }
91 inline CreateEnvironmentRequest& AddMonitors(Monitor&& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(std::move(value)); return *this; }
93
95
100 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
103 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 inline CreateEnvironmentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
106 inline CreateEnvironmentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
107 inline CreateEnvironmentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
108 inline CreateEnvironmentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
109 inline CreateEnvironmentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
110 inline CreateEnvironmentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
111 inline CreateEnvironmentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
112 inline CreateEnvironmentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
114 private:
115
116 Aws::String m_applicationId;
117 bool m_applicationIdHasBeenSet = false;
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
122 Aws::String m_description;
123 bool m_descriptionHasBeenSet = false;
124
125 Aws::Vector<Monitor> m_monitors;
126 bool m_monitorsHasBeenSet = false;
127
129 bool m_tagsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace AppConfig
134} // namespace Aws
CreateEnvironmentRequest & WithDescription(Aws::String &&value)
CreateEnvironmentRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateEnvironmentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateEnvironmentRequest & WithApplicationId(const Aws::String &value)
CreateEnvironmentRequest & AddMonitors(Monitor &&value)
CreateEnvironmentRequest & AddMonitors(const Monitor &value)
CreateEnvironmentRequest & WithDescription(const char *value)
const Aws::Vector< Monitor > & GetMonitors() const
CreateEnvironmentRequest & AddTags(const char *key, const char *value)
CreateEnvironmentRequest & WithMonitors(const Aws::Vector< Monitor > &value)
virtual const char * GetServiceRequestName() const override
CreateEnvironmentRequest & WithName(const char *value)
CreateEnvironmentRequest & AddTags(Aws::String &&key, const char *value)
CreateEnvironmentRequest & WithName(Aws::String &&value)
CreateEnvironmentRequest & WithApplicationId(const char *value)
CreateEnvironmentRequest & AddTags(const char *key, Aws::String &&value)
CreateEnvironmentRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateEnvironmentRequest & WithName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateEnvironmentRequest & WithMonitors(Aws::Vector< Monitor > &&value)
CreateEnvironmentRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateEnvironmentRequest & WithDescription(const Aws::String &value)
CreateEnvironmentRequest & WithApplicationId(Aws::String &&value)
CreateEnvironmentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateEnvironmentRequest & AddTags(const Aws::String &key, const Aws::String &value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetMonitors(const Aws::Vector< Monitor > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&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