AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
RejectPredictionsRequest.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/RejectChoice.h>
13#include <aws/datazone/model/RejectRule.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 RejectPredictionsRequest() = 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 "RejectPredictions"; }
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::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template <typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) {
49 m_clientTokenHasBeenSet = true;
50 m_clientToken = std::forward<ClientTokenT>(value);
51 }
52 template <typename ClientTokenT = Aws::String>
54 SetClientToken(std::forward<ClientTokenT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
64 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
65 template <typename DomainIdentifierT = Aws::String>
66 void SetDomainIdentifier(DomainIdentifierT&& value) {
67 m_domainIdentifierHasBeenSet = true;
68 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
69 }
70 template <typename DomainIdentifierT = Aws::String>
71 RejectPredictionsRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
72 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetIdentifier() const { return m_identifier; }
82 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
83 template <typename IdentifierT = Aws::String>
84 void SetIdentifier(IdentifierT&& value) {
85 m_identifierHasBeenSet = true;
86 m_identifier = std::forward<IdentifierT>(value);
87 }
88 template <typename IdentifierT = Aws::String>
90 SetIdentifier(std::forward<IdentifierT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<RejectChoice>& GetRejectChoices() const { return m_rejectChoices; }
101 inline bool RejectChoicesHasBeenSet() const { return m_rejectChoicesHasBeenSet; }
102 template <typename RejectChoicesT = Aws::Vector<RejectChoice>>
103 void SetRejectChoices(RejectChoicesT&& value) {
104 m_rejectChoicesHasBeenSet = true;
105 m_rejectChoices = std::forward<RejectChoicesT>(value);
106 }
107 template <typename RejectChoicesT = Aws::Vector<RejectChoice>>
109 SetRejectChoices(std::forward<RejectChoicesT>(value));
110 return *this;
111 }
112 template <typename RejectChoicesT = RejectChoice>
114 m_rejectChoicesHasBeenSet = true;
115 m_rejectChoices.emplace_back(std::forward<RejectChoicesT>(value));
116 return *this;
117 }
119
121
125 inline const RejectRule& GetRejectRule() const { return m_rejectRule; }
126 inline bool RejectRuleHasBeenSet() const { return m_rejectRuleHasBeenSet; }
127 template <typename RejectRuleT = RejectRule>
128 void SetRejectRule(RejectRuleT&& value) {
129 m_rejectRuleHasBeenSet = true;
130 m_rejectRule = std::forward<RejectRuleT>(value);
131 }
132 template <typename RejectRuleT = RejectRule>
134 SetRejectRule(std::forward<RejectRuleT>(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:
158 bool m_clientTokenHasBeenSet = true;
159
160 Aws::String m_domainIdentifier;
161 bool m_domainIdentifierHasBeenSet = false;
162
163 Aws::String m_identifier;
164 bool m_identifierHasBeenSet = false;
165
166 Aws::Vector<RejectChoice> m_rejectChoices;
167 bool m_rejectChoicesHasBeenSet = false;
168
169 RejectRule m_rejectRule;
170 bool m_rejectRuleHasBeenSet = false;
171
172 Aws::String m_revision;
173 bool m_revisionHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace DataZone
178} // namespace Aws
AWS_DATAZONE_API RejectPredictionsRequest()=default
RejectPredictionsRequest & AddRejectChoices(RejectChoicesT &&value)
RejectPredictionsRequest & WithRevision(RevisionT &&value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
RejectPredictionsRequest & WithIdentifier(IdentifierT &&value)
RejectPredictionsRequest & WithRejectRule(RejectRuleT &&value)
RejectPredictionsRequest & WithRejectChoices(RejectChoicesT &&value)
RejectPredictionsRequest & WithDomainIdentifier(DomainIdentifierT &&value)
RejectPredictionsRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< RejectChoice > & GetRejectChoices() const
AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector