AWS SDK for C++

AWS SDK for C++ Version 1.11.815

Loading...
Searching...
No Matches
AssociateFeedRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.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 AssociateFeedRequest() = 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 "AssociateFeed"; }
31
32 AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::String& GetAssociatedResourceName() const { return m_associatedResourceName; }
61 inline bool AssociatedResourceNameHasBeenSet() const { return m_associatedResourceNameHasBeenSet; }
62 template <typename AssociatedResourceNameT = Aws::String>
63 void SetAssociatedResourceName(AssociatedResourceNameT&& value) {
64 m_associatedResourceNameHasBeenSet = true;
65 m_associatedResourceName = std::forward<AssociatedResourceNameT>(value);
66 }
67 template <typename AssociatedResourceNameT = Aws::String>
68 AssociateFeedRequest& WithAssociatedResourceName(AssociatedResourceNameT&& value) {
69 SetAssociatedResourceName(std::forward<AssociatedResourceNameT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::Vector<CreateOutput>& GetOutputs() const { return m_outputs; }
81 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
82 template <typename OutputsT = Aws::Vector<CreateOutput>>
83 void SetOutputs(OutputsT&& value) {
84 m_outputsHasBeenSet = true;
85 m_outputs = std::forward<OutputsT>(value);
86 }
87 template <typename OutputsT = Aws::Vector<CreateOutput>>
88 AssociateFeedRequest& WithOutputs(OutputsT&& value) {
89 SetOutputs(std::forward<OutputsT>(value));
90 return *this;
91 }
92 template <typename OutputsT = CreateOutput>
93 AssociateFeedRequest& AddOutputs(OutputsT&& value) {
94 m_outputsHasBeenSet = true;
95 m_outputs.emplace_back(std::forward<OutputsT>(value));
96 return *this;
97 }
99
101
109 inline bool GetDryRun() const { return m_dryRun; }
110 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
111 inline void SetDryRun(bool value) {
112 m_dryRunHasBeenSet = true;
113 m_dryRun = value;
114 }
115 inline AssociateFeedRequest& WithDryRun(bool value) {
116 SetDryRun(value);
117 return *this;
118 }
120 private:
121 Aws::String m_id;
122
123 Aws::String m_associatedResourceName{Aws::Utils::UUID::PseudoRandomUUID()};
124
126
127 bool m_dryRun{false};
128 bool m_idHasBeenSet = false;
129 bool m_associatedResourceNameHasBeenSet = true;
130 bool m_outputsHasBeenSet = false;
131 bool m_dryRunHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace ElementalInference
136} // namespace Aws
AWS_ELEMENTALINFERENCE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetAssociatedResourceName(AssociatedResourceNameT &&value)
const Aws::Vector< CreateOutput > & GetOutputs() const
AssociateFeedRequest & WithAssociatedResourceName(AssociatedResourceNameT &&value)
AWS_ELEMENTALINFERENCE_API AssociateFeedRequest()=default
AssociateFeedRequest & AddOutputs(OutputsT &&value)
AssociateFeedRequest & WithOutputs(OutputsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector