AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
59 inline const Aws::String& GetAssociatedResourceName() const { return m_associatedResourceName; }
60 inline bool AssociatedResourceNameHasBeenSet() const { return m_associatedResourceNameHasBeenSet; }
61 template <typename AssociatedResourceNameT = Aws::String>
62 void SetAssociatedResourceName(AssociatedResourceNameT&& value) {
63 m_associatedResourceNameHasBeenSet = true;
64 m_associatedResourceName = std::forward<AssociatedResourceNameT>(value);
65 }
66 template <typename AssociatedResourceNameT = Aws::String>
67 AssociateFeedRequest& WithAssociatedResourceName(AssociatedResourceNameT&& value) {
68 SetAssociatedResourceName(std::forward<AssociatedResourceNameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<CreateOutput>& GetOutputs() const { return m_outputs; }
79 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
80 template <typename OutputsT = Aws::Vector<CreateOutput>>
81 void SetOutputs(OutputsT&& value) {
82 m_outputsHasBeenSet = true;
83 m_outputs = std::forward<OutputsT>(value);
84 }
85 template <typename OutputsT = Aws::Vector<CreateOutput>>
86 AssociateFeedRequest& WithOutputs(OutputsT&& value) {
87 SetOutputs(std::forward<OutputsT>(value));
88 return *this;
89 }
90 template <typename OutputsT = CreateOutput>
91 AssociateFeedRequest& AddOutputs(OutputsT&& value) {
92 m_outputsHasBeenSet = true;
93 m_outputs.emplace_back(std::forward<OutputsT>(value));
94 return *this;
95 }
97
99
102 inline bool GetDryRun() const { return m_dryRun; }
103 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
104 inline void SetDryRun(bool value) {
105 m_dryRunHasBeenSet = true;
106 m_dryRun = value;
107 }
108 inline AssociateFeedRequest& WithDryRun(bool value) {
109 SetDryRun(value);
110 return *this;
111 }
113 private:
114 Aws::String m_id;
115
116 Aws::String m_associatedResourceName{Aws::Utils::UUID::PseudoRandomUUID()};
117
119
120 bool m_dryRun{false};
121 bool m_idHasBeenSet = false;
122 bool m_associatedResourceNameHasBeenSet = true;
123 bool m_outputsHasBeenSet = false;
124 bool m_dryRunHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace ElementalInference
129} // 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