AWS SDK for C++

AWS SDK for C++ Version 1.11.865

Loading...
Searching...
No Matches
CreateFeedRequest.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/elementalinference/ElementalInferenceRequest.h>
11#include <aws/elementalinference/ElementalInference_EXPORTS.h>
12#include <aws/elementalinference/model/CreateOutput.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ElementalInference {
18namespace Model {
19
23 public:
24 AWS_ELEMENTALINFERENCE_API CreateFeedRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateFeed"; }
31
32 AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 CreateFeedRequest& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetAccessRoleArn() const { return m_accessRoleArn; }
60 inline bool AccessRoleArnHasBeenSet() const { return m_accessRoleArnHasBeenSet; }
61 template <typename AccessRoleArnT = Aws::String>
62 void SetAccessRoleArn(AccessRoleArnT&& value) {
63 m_accessRoleArnHasBeenSet = true;
64 m_accessRoleArn = std::forward<AccessRoleArnT>(value);
65 }
66 template <typename AccessRoleArnT = Aws::String>
67 CreateFeedRequest& WithAccessRoleArn(AccessRoleArnT&& value) {
68 SetAccessRoleArn(std::forward<AccessRoleArnT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::Vector<CreateOutput>& GetOutputs() const { return m_outputs; }
82 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
83 template <typename OutputsT = Aws::Vector<CreateOutput>>
84 void SetOutputs(OutputsT&& value) {
85 m_outputsHasBeenSet = true;
86 m_outputs = std::forward<OutputsT>(value);
87 }
88 template <typename OutputsT = Aws::Vector<CreateOutput>>
89 CreateFeedRequest& WithOutputs(OutputsT&& value) {
90 SetOutputs(std::forward<OutputsT>(value));
91 return *this;
92 }
93 template <typename OutputsT = CreateOutput>
94 CreateFeedRequest& AddOutputs(OutputsT&& value) {
95 m_outputsHasBeenSet = true;
96 m_outputs.emplace_back(std::forward<OutputsT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 void SetTags(TagsT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags = std::forward<TagsT>(value);
111 }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 CreateFeedRequest& WithTags(TagsT&& value) {
114 SetTags(std::forward<TagsT>(value));
115 return *this;
116 }
117 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
118 CreateFeedRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_name;
126
127 Aws::String m_accessRoleArn;
128
130
132 bool m_nameHasBeenSet = false;
133 bool m_accessRoleArnHasBeenSet = false;
134 bool m_outputsHasBeenSet = false;
135 bool m_tagsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace ElementalInference
140} // namespace Aws
AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override
CreateFeedRequest & WithOutputs(OutputsT &&value)
const Aws::Vector< CreateOutput > & GetOutputs() const
CreateFeedRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_ELEMENTALINFERENCE_API CreateFeedRequest()=default
virtual const char * GetServiceRequestName() const override
CreateFeedRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateFeedRequest & WithAccessRoleArn(AccessRoleArnT &&value)
CreateFeedRequest & AddOutputs(OutputsT &&value)
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