AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateServiceTemplateRequest.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 "CreateServiceTemplate"; }
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 CreateServiceTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
50 inline CreateServiceTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
51 inline CreateServiceTemplateRequest& 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 CreateServiceTemplateRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
64 inline CreateServiceTemplateRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
65 inline CreateServiceTemplateRequest& 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); }
77 inline CreateServiceTemplateRequest& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;}
78 inline CreateServiceTemplateRequest& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;}
79 inline CreateServiceTemplateRequest& 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 CreateServiceTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
92 inline CreateServiceTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
93 inline CreateServiceTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
95
97
105 inline const Provisioning& GetPipelineProvisioning() const{ return m_pipelineProvisioning; }
106 inline bool PipelineProvisioningHasBeenSet() const { return m_pipelineProvisioningHasBeenSet; }
107 inline void SetPipelineProvisioning(const Provisioning& value) { m_pipelineProvisioningHasBeenSet = true; m_pipelineProvisioning = value; }
108 inline void SetPipelineProvisioning(Provisioning&& value) { m_pipelineProvisioningHasBeenSet = true; m_pipelineProvisioning = std::move(value); }
112
114
120 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
123 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
124 inline CreateServiceTemplateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
125 inline CreateServiceTemplateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
126 inline CreateServiceTemplateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
127 inline CreateServiceTemplateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
129 private:
130
131 Aws::String m_description;
132 bool m_descriptionHasBeenSet = false;
133
134 Aws::String m_displayName;
135 bool m_displayNameHasBeenSet = false;
136
137 Aws::String m_encryptionKey;
138 bool m_encryptionKeyHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 Provisioning m_pipelineProvisioning;
144 bool m_pipelineProvisioningHasBeenSet = false;
145
146 Aws::Vector<Tag> m_tags;
147 bool m_tagsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Proton
152} // namespace Aws
CreateServiceTemplateRequest & WithName(const Aws::String &value)
CreateServiceTemplateRequest & WithTags(Aws::Vector< Tag > &&value)
CreateServiceTemplateRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateServiceTemplateRequest & WithDisplayName(const char *value)
CreateServiceTemplateRequest & WithPipelineProvisioning(Provisioning &&value)
CreateServiceTemplateRequest & AddTags(const Tag &value)
CreateServiceTemplateRequest & WithDisplayName(const Aws::String &value)
CreateServiceTemplateRequest & WithDescription(const char *value)
AWS_PROTON_API Aws::String SerializePayload() const override
CreateServiceTemplateRequest & WithPipelineProvisioning(const Provisioning &value)
CreateServiceTemplateRequest & WithName(const char *value)
CreateServiceTemplateRequest & AddTags(Tag &&value)
CreateServiceTemplateRequest & WithName(Aws::String &&value)
CreateServiceTemplateRequest & WithEncryptionKey(const Aws::String &value)
CreateServiceTemplateRequest & WithDisplayName(Aws::String &&value)
CreateServiceTemplateRequest & WithEncryptionKey(Aws::String &&value)
CreateServiceTemplateRequest & WithEncryptionKey(const char *value)
CreateServiceTemplateRequest & WithDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateServiceTemplateRequest & WithDescription(const Aws::String &value)
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