AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateIngestionRequest.h
1
6#pragma once
7#include <aws/appfabric/AppFabric_EXPORTS.h>
8#include <aws/appfabric/AppFabricRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appfabric/model/IngestionType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/appfabric/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace AppFabric
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_APPFABRIC_API CreateIngestionRequest() = 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 "CreateIngestion"; }
35
36 AWS_APPFABRIC_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetAppBundleIdentifier() const { return m_appBundleIdentifier; }
45 inline bool AppBundleIdentifierHasBeenSet() const { return m_appBundleIdentifierHasBeenSet; }
46 template<typename AppBundleIdentifierT = Aws::String>
47 void SetAppBundleIdentifier(AppBundleIdentifierT&& value) { m_appBundleIdentifierHasBeenSet = true; m_appBundleIdentifier = std::forward<AppBundleIdentifierT>(value); }
48 template<typename AppBundleIdentifierT = Aws::String>
49 CreateIngestionRequest& WithAppBundleIdentifier(AppBundleIdentifierT&& value) { SetAppBundleIdentifier(std::forward<AppBundleIdentifierT>(value)); return *this;}
51
53
63 inline const Aws::String& GetApp() const { return m_app; }
64 inline bool AppHasBeenSet() const { return m_appHasBeenSet; }
65 template<typename AppT = Aws::String>
66 void SetApp(AppT&& value) { m_appHasBeenSet = true; m_app = std::forward<AppT>(value); }
67 template<typename AppT = Aws::String>
68 CreateIngestionRequest& WithApp(AppT&& value) { SetApp(std::forward<AppT>(value)); return *this;}
70
72
75 inline const Aws::String& GetTenantId() const { return m_tenantId; }
76 inline bool TenantIdHasBeenSet() const { return m_tenantIdHasBeenSet; }
77 template<typename TenantIdT = Aws::String>
78 void SetTenantId(TenantIdT&& value) { m_tenantIdHasBeenSet = true; m_tenantId = std::forward<TenantIdT>(value); }
79 template<typename TenantIdT = Aws::String>
80 CreateIngestionRequest& WithTenantId(TenantIdT&& value) { SetTenantId(std::forward<TenantIdT>(value)); return *this;}
82
84
87 inline IngestionType GetIngestionType() const { return m_ingestionType; }
88 inline bool IngestionTypeHasBeenSet() const { return m_ingestionTypeHasBeenSet; }
89 inline void SetIngestionType(IngestionType value) { m_ingestionTypeHasBeenSet = true; m_ingestionType = value; }
92
94
106 inline const Aws::String& GetClientToken() const { return m_clientToken; }
107 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
108 template<typename ClientTokenT = Aws::String>
109 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
110 template<typename ClientTokenT = Aws::String>
111 CreateIngestionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
113
115
119 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template<typename TagsT = Aws::Vector<Tag>>
122 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
123 template<typename TagsT = Aws::Vector<Tag>>
124 CreateIngestionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
125 template<typename TagsT = Tag>
126 CreateIngestionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
128 private:
129
130 Aws::String m_appBundleIdentifier;
131 bool m_appBundleIdentifierHasBeenSet = false;
132
133 Aws::String m_app;
134 bool m_appHasBeenSet = false;
135
136 Aws::String m_tenantId;
137 bool m_tenantIdHasBeenSet = false;
138
139 IngestionType m_ingestionType{IngestionType::NOT_SET};
140 bool m_ingestionTypeHasBeenSet = false;
141
143 bool m_clientTokenHasBeenSet = true;
144
145 Aws::Vector<Tag> m_tags;
146 bool m_tagsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace AppFabric
151} // 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