AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/MgnRequest.h>
10#include <aws/mgn/Mgn_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace mgn {
16namespace Model {
17
21 public:
22 AWS_MGN_API CreateApplicationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
29
30 AWS_MGN_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetName() const { return m_name; }
37 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template <typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) {
58 m_descriptionHasBeenSet = true;
59 m_description = std::forward<DescriptionT>(value);
60 }
61 template <typename DescriptionT = Aws::String>
63 SetDescription(std::forward<DescriptionT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
75 void SetTags(TagsT&& value) {
76 m_tagsHasBeenSet = true;
77 m_tags = std::forward<TagsT>(value);
78 }
79 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 SetTags(std::forward<TagsT>(value));
82 return *this;
83 }
84 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
85 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
86 m_tagsHasBeenSet = true;
87 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetAccountID() const { return m_accountID; }
97 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
98 template <typename AccountIDT = Aws::String>
99 void SetAccountID(AccountIDT&& value) {
100 m_accountIDHasBeenSet = true;
101 m_accountID = std::forward<AccountIDT>(value);
102 }
103 template <typename AccountIDT = Aws::String>
105 SetAccountID(std::forward<AccountIDT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_name;
111
112 Aws::String m_description;
113
115
116 Aws::String m_accountID;
117 bool m_nameHasBeenSet = false;
118 bool m_descriptionHasBeenSet = false;
119 bool m_tagsHasBeenSet = false;
120 bool m_accountIDHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace mgn
125} // namespace Aws
CreateApplicationRequest & WithAccountID(AccountIDT &&value)
AWS_MGN_API CreateApplicationRequest()=default
CreateApplicationRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateApplicationRequest & WithDescription(DescriptionT &&value)
CreateApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApplicationRequest & WithName(NameT &&value)
AWS_MGN_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String