AWS SDK for C++  1.8.71
AWS SDK for C++
CreateApplicationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace CodeDeploy
18 {
19 namespace 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 
39  Aws::String SerializePayload() const override;
40 
41  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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 
121  inline CreateApplicationRequest& WithComputePlatform(const ComputePlatform& value) { SetComputePlatform(value); return *this;}
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;
190 
191  ComputePlatform m_computePlatform;
192  bool m_computePlatformHasBeenSet;
193 
194  Aws::Vector<Tag> m_tags;
195  bool m_tagsHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace CodeDeploy
200 } // namespace Aws
CreateApplicationRequest & AddTags(Tag &&value)
virtual const char * GetServiceRequestName() const override
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateApplicationRequest & WithApplicationName(Aws::String &&value)
CreateApplicationRequest & WithTags(Aws::Vector< Tag > &&value)
#define AWS_CODEDEPLOY_API
CreateApplicationRequest & WithComputePlatform(const ComputePlatform &value)
CreateApplicationRequest & AddTags(const Tag &value)
CreateApplicationRequest & WithApplicationName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateApplicationRequest & WithComputePlatform(ComputePlatform &&value)
CreateApplicationRequest & WithApplicationName(const char *value)
CreateApplicationRequest & WithTags(const Aws::Vector< Tag > &value)