AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateIngestionRequest.h
1
6#pragma once
7#include <aws/appfabric/AppFabricRequest.h>
8#include <aws/appfabric/AppFabric_EXPORTS.h>
9#include <aws/appfabric/model/IngestionType.h>
10#include <aws/appfabric/model/Tag.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace AppFabric {
19namespace Model {
20
24 public:
25 AWS_APPFABRIC_API CreateIngestionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateIngestion"; }
32
33 AWS_APPFABRIC_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetAppBundleIdentifier() const { return m_appBundleIdentifier; }
41 inline bool AppBundleIdentifierHasBeenSet() const { return m_appBundleIdentifierHasBeenSet; }
42 template <typename AppBundleIdentifierT = Aws::String>
43 void SetAppBundleIdentifier(AppBundleIdentifierT&& value) {
44 m_appBundleIdentifierHasBeenSet = true;
45 m_appBundleIdentifier = std::forward<AppBundleIdentifierT>(value);
46 }
47 template <typename AppBundleIdentifierT = Aws::String>
48 CreateIngestionRequest& WithAppBundleIdentifier(AppBundleIdentifierT&& value) {
49 SetAppBundleIdentifier(std::forward<AppBundleIdentifierT>(value));
50 return *this;
51 }
53
55
65 inline const Aws::String& GetApp() const { return m_app; }
66 inline bool AppHasBeenSet() const { return m_appHasBeenSet; }
67 template <typename AppT = Aws::String>
68 void SetApp(AppT&& value) {
69 m_appHasBeenSet = true;
70 m_app = std::forward<AppT>(value);
71 }
72 template <typename AppT = Aws::String>
74 SetApp(std::forward<AppT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetTenantId() const { return m_tenantId; }
84 inline bool TenantIdHasBeenSet() const { return m_tenantIdHasBeenSet; }
85 template <typename TenantIdT = Aws::String>
86 void SetTenantId(TenantIdT&& value) {
87 m_tenantIdHasBeenSet = true;
88 m_tenantId = std::forward<TenantIdT>(value);
89 }
90 template <typename TenantIdT = Aws::String>
92 SetTenantId(std::forward<TenantIdT>(value));
93 return *this;
94 }
96
98
101 inline IngestionType GetIngestionType() const { return m_ingestionType; }
102 inline bool IngestionTypeHasBeenSet() const { return m_ingestionTypeHasBeenSet; }
103 inline void SetIngestionType(IngestionType value) {
104 m_ingestionTypeHasBeenSet = true;
105 m_ingestionType = value;
106 }
108 SetIngestionType(value);
109 return *this;
110 }
112
114
126 inline const Aws::String& GetClientToken() const { return m_clientToken; }
127 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
128 template <typename ClientTokenT = Aws::String>
129 void SetClientToken(ClientTokenT&& value) {
130 m_clientTokenHasBeenSet = true;
131 m_clientToken = std::forward<ClientTokenT>(value);
132 }
133 template <typename ClientTokenT = Aws::String>
135 SetClientToken(std::forward<ClientTokenT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template <typename TagsT = Aws::Vector<Tag>>
148 void SetTags(TagsT&& value) {
149 m_tagsHasBeenSet = true;
150 m_tags = std::forward<TagsT>(value);
151 }
152 template <typename TagsT = Aws::Vector<Tag>>
154 SetTags(std::forward<TagsT>(value));
155 return *this;
156 }
157 template <typename TagsT = Tag>
159 m_tagsHasBeenSet = true;
160 m_tags.emplace_back(std::forward<TagsT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_appBundleIdentifier;
166
167 Aws::String m_app;
168
169 Aws::String m_tenantId;
170
171 IngestionType m_ingestionType{IngestionType::NOT_SET};
172
174
175 Aws::Vector<Tag> m_tags;
176 bool m_appBundleIdentifierHasBeenSet = false;
177 bool m_appHasBeenSet = false;
178 bool m_tenantIdHasBeenSet = false;
179 bool m_ingestionTypeHasBeenSet = false;
180 bool m_clientTokenHasBeenSet = true;
181 bool m_tagsHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace AppFabric
186} // namespace Aws
CreateIngestionRequest & WithAppBundleIdentifier(AppBundleIdentifierT &&value)
CreateIngestionRequest & WithIngestionType(IngestionType value)
CreateIngestionRequest & WithClientToken(ClientTokenT &&value)
AWS_APPFABRIC_API Aws::String SerializePayload() const override
CreateIngestionRequest & AddTags(TagsT &&value)
void SetAppBundleIdentifier(AppBundleIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
CreateIngestionRequest & WithTags(TagsT &&value)
CreateIngestionRequest & WithApp(AppT &&value)
CreateIngestionRequest & WithTenantId(TenantIdT &&value)
AWS_APPFABRIC_API CreateIngestionRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector