AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateQAppRequest.h
1
6#pragma once
7#include <aws/qapps/QApps_EXPORTS.h>
8#include <aws/qapps/QAppsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qapps/model/AppDefinitionInput.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace QApps
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QAPPS_API CreateQAppRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateQApp"; }
33
34 AWS_QAPPS_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
45 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 template<typename InstanceIdT = Aws::String>
47 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
48 template<typename InstanceIdT = Aws::String>
49 CreateQAppRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetTitle() const { return m_title; }
57 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
58 template<typename TitleT = Aws::String>
59 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
60 template<typename TitleT = Aws::String>
61 CreateQAppRequest& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 CreateQAppRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75
77
80 inline const AppDefinitionInput& GetAppDefinition() const { return m_appDefinition; }
81 inline bool AppDefinitionHasBeenSet() const { return m_appDefinitionHasBeenSet; }
82 template<typename AppDefinitionT = AppDefinitionInput>
83 void SetAppDefinition(AppDefinitionT&& value) { m_appDefinitionHasBeenSet = true; m_appDefinition = std::forward<AppDefinitionT>(value); }
84 template<typename AppDefinitionT = AppDefinitionInput>
85 CreateQAppRequest& WithAppDefinition(AppDefinitionT&& value) { SetAppDefinition(std::forward<AppDefinitionT>(value)); return *this;}
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
96 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 CreateQAppRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
98 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
100 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
101 }
103 private:
104
105 Aws::String m_instanceId;
106 bool m_instanceIdHasBeenSet = false;
107
108 Aws::String m_title;
109 bool m_titleHasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
114 AppDefinitionInput m_appDefinition;
115 bool m_appDefinitionHasBeenSet = false;
116
118 bool m_tagsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace QApps
123} // 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