AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEnvironmentTemplateRequest.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/proton/ProtonRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/proton/model/Provisioning.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/proton/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Proton
18{
19namespace Model
20{
21
25 {
26 public:
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 "CreateEnvironmentTemplate"; }
34
35 AWS_PROTON_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetDescription() const{ return m_description; }
45 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
46 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
47 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
48 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
49 inline CreateEnvironmentTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
50 inline CreateEnvironmentTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
51 inline CreateEnvironmentTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
53
55
58 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
59 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
60 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
61 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
62 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
63 inline CreateEnvironmentTemplateRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
64 inline CreateEnvironmentTemplateRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
65 inline CreateEnvironmentTemplateRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
67
69
72 inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; }
73 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
74 inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
75 inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); }
76 inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); }
78 inline CreateEnvironmentTemplateRequest& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;}
79 inline CreateEnvironmentTemplateRequest& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;}
81
83
86 inline const Aws::String& GetName() const{ return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
89 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
90 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
91 inline CreateEnvironmentTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
92 inline CreateEnvironmentTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
93 inline CreateEnvironmentTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
95
97
101 inline const Provisioning& GetProvisioning() const{ return m_provisioning; }
102 inline bool ProvisioningHasBeenSet() const { return m_provisioningHasBeenSet; }
103 inline void SetProvisioning(const Provisioning& value) { m_provisioningHasBeenSet = true; m_provisioning = value; }
104 inline void SetProvisioning(Provisioning&& value) { m_provisioningHasBeenSet = true; m_provisioning = std::move(value); }
106 inline CreateEnvironmentTemplateRequest& WithProvisioning(Provisioning&& value) { SetProvisioning(std::move(value)); return *this;}
108
110
117 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
120 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
121 inline CreateEnvironmentTemplateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
122 inline CreateEnvironmentTemplateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
123 inline CreateEnvironmentTemplateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
124 inline CreateEnvironmentTemplateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
126 private:
127
128 Aws::String m_description;
129 bool m_descriptionHasBeenSet = false;
130
131 Aws::String m_displayName;
132 bool m_displayNameHasBeenSet = false;
133
134 Aws::String m_encryptionKey;
135 bool m_encryptionKeyHasBeenSet = false;
136
137 Aws::String m_name;
138 bool m_nameHasBeenSet = false;
139
140 Provisioning m_provisioning;
141 bool m_provisioningHasBeenSet = false;
142
143 Aws::Vector<Tag> m_tags;
144 bool m_tagsHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace Proton
149} // namespace Aws
CreateEnvironmentTemplateRequest & WithDisplayName(const char *value)
CreateEnvironmentTemplateRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_PROTON_API Aws::String SerializePayload() const override
CreateEnvironmentTemplateRequest & WithEncryptionKey(const Aws::String &value)
CreateEnvironmentTemplateRequest & WithDisplayName(const Aws::String &value)
CreateEnvironmentTemplateRequest & WithDisplayName(Aws::String &&value)
CreateEnvironmentTemplateRequest & AddTags(Tag &&value)
CreateEnvironmentTemplateRequest & WithName(Aws::String &&value)
CreateEnvironmentTemplateRequest & AddTags(const Tag &value)
CreateEnvironmentTemplateRequest & WithName(const char *value)
CreateEnvironmentTemplateRequest & WithEncryptionKey(Aws::String &&value)
CreateEnvironmentTemplateRequest & WithEncryptionKey(const char *value)
CreateEnvironmentTemplateRequest & WithProvisioning(const Provisioning &value)
CreateEnvironmentTemplateRequest & WithDescription(const Aws::String &value)
CreateEnvironmentTemplateRequest & WithDescription(Aws::String &&value)
CreateEnvironmentTemplateRequest & WithProvisioning(Provisioning &&value)
CreateEnvironmentTemplateRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEnvironmentTemplateRequest & WithName(const Aws::String &value)
CreateEnvironmentTemplateRequest & WithDescription(const char *value)
AWS_PROTON_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