AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateApplicationRequest.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace CodeDeploy
18{
19namespace Model
20{
21
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
38
40
42
43
48 inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
49
54 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
55
60 inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
61
66 inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
67
72 inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
73
78 inline CreateApplicationRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
79
84 inline CreateApplicationRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
85
90 inline CreateApplicationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
91
92
97 inline const ComputePlatform& GetComputePlatform() const{ return m_computePlatform; }
98
103 inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
104
109 inline void SetComputePlatform(const ComputePlatform& value) { m_computePlatformHasBeenSet = true; m_computePlatform = value; }
110
115 inline void SetComputePlatform(ComputePlatform&& value) { m_computePlatformHasBeenSet = true; m_computePlatform = std::move(value); }
116
122
127 inline CreateApplicationRequest& WithComputePlatform(ComputePlatform&& value) { SetComputePlatform(std::move(value)); return *this;}
128
129
135 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
136
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143
149 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
150
156 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
157
163 inline CreateApplicationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
164
170 inline CreateApplicationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
171
177 inline CreateApplicationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
178
184 inline CreateApplicationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
185
186 private:
187
188 Aws::String m_applicationName;
189 bool m_applicationNameHasBeenSet = false;
190
191 ComputePlatform m_computePlatform;
192 bool m_computePlatformHasBeenSet = false;
193
194 Aws::Vector<Tag> m_tags;
195 bool m_tagsHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace CodeDeploy
200} // namespace Aws
#define AWS_CODEDEPLOY_API
CreateApplicationRequest & WithApplicationName(Aws::String &&value)
CreateApplicationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateApplicationRequest & AddTags(const Tag &value)
CreateApplicationRequest & WithApplicationName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateApplicationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateApplicationRequest & WithApplicationName(const char *value)
CreateApplicationRequest & WithComputePlatform(const ComputePlatform &value)
CreateApplicationRequest & WithComputePlatform(ComputePlatform &&value)
CreateApplicationRequest & AddTags(Tag &&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