AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
58 inline const Aws::Vector<CreateOutput>& GetOutputs() const { return m_outputs; }
59 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
60 template <typename OutputsT = Aws::Vector<CreateOutput>>
61 void SetOutputs(OutputsT&& value) {
62 m_outputsHasBeenSet = true;
63 m_outputs = std::forward<OutputsT>(value);
64 }
65 template <typename OutputsT = Aws::Vector<CreateOutput>>
66 CreateFeedRequest& WithOutputs(OutputsT&& value) {
67 SetOutputs(std::forward<OutputsT>(value));
68 return *this;
69 }
70 template <typename OutputsT = CreateOutput>
71 CreateFeedRequest& AddOutputs(OutputsT&& value) {
72 m_outputsHasBeenSet = true;
73 m_outputs.emplace_back(std::forward<OutputsT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 void SetTags(TagsT&& value) {
87 m_tagsHasBeenSet = true;
88 m_tags = std::forward<TagsT>(value);
89 }
90 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
91 CreateFeedRequest& WithTags(TagsT&& value) {
92 SetTags(std::forward<TagsT>(value));
93 return *this;
94 }
95 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
96 CreateFeedRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_name;
104
106
108 bool m_nameHasBeenSet = false;
109 bool m_outputsHasBeenSet = false;
110 bool m_tagsHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace ElementalInference
115} // namespace Aws
AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override
CreateFeedRequest & WithOutputs(OutputsT &&value)
const Aws::Vector< CreateOutput > & GetOutputs() const
CreateFeedRequest & WithName(NameT &&value)
CreateFeedRequest & WithTags(TagsT &&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 & 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