AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateQAppRequest.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/qapps/QAppsRequest.h>
10#include <aws/qapps/QApps_EXPORTS.h>
11#include <aws/qapps/model/AppDefinitionInput.h>
12
13#include <utility>
14
15namespace Aws {
16namespace QApps {
17namespace Model {
18
22 public:
23 AWS_QAPPS_API CreateQAppRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateQApp"; }
30
31 AWS_QAPPS_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
41 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
42 template <typename InstanceIdT = Aws::String>
43 void SetInstanceId(InstanceIdT&& value) {
44 m_instanceIdHasBeenSet = true;
45 m_instanceId = std::forward<InstanceIdT>(value);
46 }
47 template <typename InstanceIdT = Aws::String>
49 SetInstanceId(std::forward<InstanceIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTitle() const { return m_title; }
59 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
60 template <typename TitleT = Aws::String>
61 void SetTitle(TitleT&& value) {
62 m_titleHasBeenSet = true;
63 m_title = std::forward<TitleT>(value);
64 }
65 template <typename TitleT = Aws::String>
67 SetTitle(std::forward<TitleT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const AppDefinitionInput& GetAppDefinition() const { return m_appDefinition; }
95 inline bool AppDefinitionHasBeenSet() const { return m_appDefinitionHasBeenSet; }
96 template <typename AppDefinitionT = AppDefinitionInput>
98 m_appDefinitionHasBeenSet = true;
99 m_appDefinition = std::forward<AppDefinitionT>(value);
100 }
101 template <typename AppDefinitionT = AppDefinitionInput>
103 SetAppDefinition(std::forward<AppDefinitionT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 void SetTags(TagsT&& value) {
116 m_tagsHasBeenSet = true;
117 m_tags = std::forward<TagsT>(value);
118 }
119 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 SetTags(std::forward<TagsT>(value));
122 return *this;
123 }
124 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
126 m_tagsHasBeenSet = true;
127 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_instanceId;
133
134 Aws::String m_title;
135
136 Aws::String m_description;
137
138 AppDefinitionInput m_appDefinition;
139
141 bool m_instanceIdHasBeenSet = false;
142 bool m_titleHasBeenSet = false;
143 bool m_descriptionHasBeenSet = false;
144 bool m_appDefinitionHasBeenSet = false;
145 bool m_tagsHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace QApps
150} // namespace Aws
CreateQAppRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_QAPPS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDescription(DescriptionT &&value)
CreateQAppRequest & WithTitle(TitleT &&value)
AWS_QAPPS_API CreateQAppRequest()=default
AWS_QAPPS_API Aws::String SerializePayload() const override
CreateQAppRequest & WithAppDefinition(AppDefinitionT &&value)
CreateQAppRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
CreateQAppRequest & WithInstanceId(InstanceIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const AppDefinitionInput & GetAppDefinition() const
const Aws::String & GetInstanceId() const
CreateQAppRequest & WithTags(TagsT &&value)
void SetInstanceId(InstanceIdT &&value)
const Aws::String & GetTitle() const
const Aws::String & GetDescription() const
void SetAppDefinition(AppDefinitionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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