AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
AcceptPredictionsRequest.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/datazone/DataZoneRequest.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/AcceptChoice.h>
13#include <aws/datazone/model/AcceptRule.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace DataZone {
22namespace Model {
23
27 public:
28 AWS_DATAZONE_API AcceptPredictionsRequest() = 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 "AcceptPredictions"; }
35
36 AWS_DATAZONE_API Aws::String SerializePayload() const override;
37
38 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
45 inline const Aws::Vector<AcceptChoice>& GetAcceptChoices() const { return m_acceptChoices; }
46 inline bool AcceptChoicesHasBeenSet() const { return m_acceptChoicesHasBeenSet; }
47 template <typename AcceptChoicesT = Aws::Vector<AcceptChoice>>
48 void SetAcceptChoices(AcceptChoicesT&& value) {
49 m_acceptChoicesHasBeenSet = true;
50 m_acceptChoices = std::forward<AcceptChoicesT>(value);
51 }
52 template <typename AcceptChoicesT = Aws::Vector<AcceptChoice>>
54 SetAcceptChoices(std::forward<AcceptChoicesT>(value));
55 return *this;
56 }
57 template <typename AcceptChoicesT = AcceptChoice>
58 AcceptPredictionsRequest& AddAcceptChoices(AcceptChoicesT&& value) {
59 m_acceptChoicesHasBeenSet = true;
60 m_acceptChoices.emplace_back(std::forward<AcceptChoicesT>(value));
61 return *this;
62 }
64
66
70 inline const AcceptRule& GetAcceptRule() const { return m_acceptRule; }
71 inline bool AcceptRuleHasBeenSet() const { return m_acceptRuleHasBeenSet; }
72 template <typename AcceptRuleT = AcceptRule>
73 void SetAcceptRule(AcceptRuleT&& value) {
74 m_acceptRuleHasBeenSet = true;
75 m_acceptRule = std::forward<AcceptRuleT>(value);
76 }
77 template <typename AcceptRuleT = AcceptRule>
79 SetAcceptRule(std::forward<AcceptRuleT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetClientToken() const { return m_clientToken; }
90 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
91 template <typename ClientTokenT = Aws::String>
92 void SetClientToken(ClientTokenT&& value) {
93 m_clientTokenHasBeenSet = true;
94 m_clientToken = std::forward<ClientTokenT>(value);
95 }
96 template <typename ClientTokenT = Aws::String>
98 SetClientToken(std::forward<ClientTokenT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
108 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
109 template <typename DomainIdentifierT = Aws::String>
110 void SetDomainIdentifier(DomainIdentifierT&& value) {
111 m_domainIdentifierHasBeenSet = true;
112 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
113 }
114 template <typename DomainIdentifierT = Aws::String>
115 AcceptPredictionsRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
116 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetIdentifier() const { return m_identifier; }
126 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
127 template <typename IdentifierT = Aws::String>
128 void SetIdentifier(IdentifierT&& value) {
129 m_identifierHasBeenSet = true;
130 m_identifier = std::forward<IdentifierT>(value);
131 }
132 template <typename IdentifierT = Aws::String>
134 SetIdentifier(std::forward<IdentifierT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetRevision() const { return m_revision; }
144 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
145 template <typename RevisionT = Aws::String>
146 void SetRevision(RevisionT&& value) {
147 m_revisionHasBeenSet = true;
148 m_revision = std::forward<RevisionT>(value);
149 }
150 template <typename RevisionT = Aws::String>
152 SetRevision(std::forward<RevisionT>(value));
153 return *this;
154 }
156 private:
157 Aws::Vector<AcceptChoice> m_acceptChoices;
158 bool m_acceptChoicesHasBeenSet = false;
159
160 AcceptRule m_acceptRule;
161 bool m_acceptRuleHasBeenSet = false;
162
164 bool m_clientTokenHasBeenSet = true;
165
166 Aws::String m_domainIdentifier;
167 bool m_domainIdentifierHasBeenSet = false;
168
169 Aws::String m_identifier;
170 bool m_identifierHasBeenSet = false;
171
172 Aws::String m_revision;
173 bool m_revisionHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace DataZone
178} // namespace Aws
AcceptPredictionsRequest & WithAcceptRule(AcceptRuleT &&value)
AcceptPredictionsRequest & WithAcceptChoices(AcceptChoicesT &&value)
AcceptPredictionsRequest & WithRevision(RevisionT &&value)
AcceptPredictionsRequest & WithClientToken(ClientTokenT &&value)
AcceptPredictionsRequest & AddAcceptChoices(AcceptChoicesT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
AWS_DATAZONE_API AcceptPredictionsRequest()=default
AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::Vector< AcceptChoice > & GetAcceptChoices() const
AcceptPredictionsRequest & WithDomainIdentifier(DomainIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
AcceptPredictionsRequest & WithIdentifier(IdentifierT &&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