AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeployRequest.h>
8#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
9#include <aws/codedeploy/model/ComputePlatform.h>
10#include <aws/codedeploy/model/Tag.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CodeDeploy {
18namespace Model {
19
27 public:
28 AWS_CODEDEPLOY_API CreateApplicationRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
35
36 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
37
39
41
45 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
46 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
47 template <typename ApplicationNameT = Aws::String>
48 void SetApplicationName(ApplicationNameT&& value) {
49 m_applicationNameHasBeenSet = true;
50 m_applicationName = std::forward<ApplicationNameT>(value);
51 }
52 template <typename ApplicationNameT = Aws::String>
53 CreateApplicationRequest& WithApplicationName(ApplicationNameT&& value) {
54 SetApplicationName(std::forward<ApplicationNameT>(value));
55 return *this;
56 }
58
60
64 inline ComputePlatform GetComputePlatform() const { return m_computePlatform; }
65 inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
67 m_computePlatformHasBeenSet = true;
68 m_computePlatform = value;
69 }
71 SetComputePlatform(value);
72 return *this;
73 }
75
77
82 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template <typename TagsT = Aws::Vector<Tag>>
85 void SetTags(TagsT&& value) {
86 m_tagsHasBeenSet = true;
87 m_tags = std::forward<TagsT>(value);
88 }
89 template <typename TagsT = Aws::Vector<Tag>>
91 SetTags(std::forward<TagsT>(value));
92 return *this;
93 }
94 template <typename TagsT = Tag>
96 m_tagsHasBeenSet = true;
97 m_tags.emplace_back(std::forward<TagsT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_applicationName;
103
104 ComputePlatform m_computePlatform{ComputePlatform::NOT_SET};
105
106 Aws::Vector<Tag> m_tags;
107 bool m_applicationNameHasBeenSet = false;
108 bool m_computePlatformHasBeenSet = false;
109 bool m_tagsHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace CodeDeploy
114} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
AWS_CODEDEPLOY_API CreateApplicationRequest()=default
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateApplicationRequest & AddTags(TagsT &&value)
CreateApplicationRequest & WithTags(TagsT &&value)
CreateApplicationRequest & WithComputePlatform(ComputePlatform value)
CreateApplicationRequest & WithApplicationName(ApplicationNameT &&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