AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/appintegrations/AppIntegrationsService_EXPORTS.h>
8#include <aws/appintegrations/AppIntegrationsServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appintegrations/model/ApplicationSourceConfig.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace AppIntegrationsService
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_APPINTEGRATIONSSERVICE_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_APPINTEGRATIONSSERVICE_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreateApplicationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetNamespace() const { return m_namespace; }
56 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
57 template<typename NamespaceT = Aws::String>
58 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
59 template<typename NamespaceT = Aws::String>
60 CreateApplicationRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template<typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 CreateApplicationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74
76
79 inline const ApplicationSourceConfig& GetApplicationSourceConfig() const { return m_applicationSourceConfig; }
80 inline bool ApplicationSourceConfigHasBeenSet() const { return m_applicationSourceConfigHasBeenSet; }
81 template<typename ApplicationSourceConfigT = ApplicationSourceConfig>
82 void SetApplicationSourceConfig(ApplicationSourceConfigT&& value) { m_applicationSourceConfigHasBeenSet = true; m_applicationSourceConfig = std::forward<ApplicationSourceConfigT>(value); }
83 template<typename ApplicationSourceConfigT = ApplicationSourceConfig>
84 CreateApplicationRequest& WithApplicationSourceConfig(ApplicationSourceConfigT&& value) { SetApplicationSourceConfig(std::forward<ApplicationSourceConfigT>(value)); return *this;}
86
88
95 inline const Aws::String& GetClientToken() const { return m_clientToken; }
96 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
97 template<typename ClientTokenT = Aws::String>
98 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
99 template<typename ClientTokenT = Aws::String>
100 CreateApplicationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
102
104
108 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 CreateApplicationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
114 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
115 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
116 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
117 }
119
121
125 inline const Aws::Vector<Aws::String>& GetPermissions() const { return m_permissions; }
126 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
127 template<typename PermissionsT = Aws::Vector<Aws::String>>
128 void SetPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions = std::forward<PermissionsT>(value); }
129 template<typename PermissionsT = Aws::Vector<Aws::String>>
130 CreateApplicationRequest& WithPermissions(PermissionsT&& value) { SetPermissions(std::forward<PermissionsT>(value)); return *this;}
131 template<typename PermissionsT = Aws::String>
132 CreateApplicationRequest& AddPermissions(PermissionsT&& value) { m_permissionsHasBeenSet = true; m_permissions.emplace_back(std::forward<PermissionsT>(value)); return *this; }
134 private:
135
136 Aws::String m_name;
137 bool m_nameHasBeenSet = false;
138
139 Aws::String m_namespace;
140 bool m_namespaceHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
145 ApplicationSourceConfig m_applicationSourceConfig;
146 bool m_applicationSourceConfigHasBeenSet = false;
147
149 bool m_clientTokenHasBeenSet = true;
150
152 bool m_tagsHasBeenSet = false;
153
154 Aws::Vector<Aws::String> m_permissions;
155 bool m_permissionsHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace AppIntegrationsService
160} // namespace Aws
CreateApplicationRequest & WithPermissions(PermissionsT &&value)
AWS_APPINTEGRATIONSSERVICE_API Aws::String SerializePayload() const override
AWS_APPINTEGRATIONSSERVICE_API CreateApplicationRequest()=default
CreateApplicationRequest & WithClientToken(ClientTokenT &&value)
CreateApplicationRequest & AddPermissions(PermissionsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApplicationRequest & WithDescription(DescriptionT &&value)
CreateApplicationRequest & WithApplicationSourceConfig(ApplicationSourceConfigT &&value)
CreateApplicationRequest & WithNamespace(NamespaceT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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
std::vector< T, Aws::Allocator< T > > Vector