AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
44 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
45 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
46 template <typename DomainIdentifierT = Aws::String>
47 void SetDomainIdentifier(DomainIdentifierT&& value) {
48 m_domainIdentifierHasBeenSet = true;
49 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
50 }
51 template <typename DomainIdentifierT = Aws::String>
52 AcceptPredictionsRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
53 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetIdentifier() const { return m_identifier; }
63 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
64 template <typename IdentifierT = Aws::String>
65 void SetIdentifier(IdentifierT&& value) {
66 m_identifierHasBeenSet = true;
67 m_identifier = std::forward<IdentifierT>(value);
68 }
69 template <typename IdentifierT = Aws::String>
71 SetIdentifier(std::forward<IdentifierT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetRevision() const { return m_revision; }
81 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
82 template <typename RevisionT = Aws::String>
83 void SetRevision(RevisionT&& value) {
84 m_revisionHasBeenSet = true;
85 m_revision = std::forward<RevisionT>(value);
86 }
87 template <typename RevisionT = Aws::String>
89 SetRevision(std::forward<RevisionT>(value));
90 return *this;
91 }
93
95
99 inline const AcceptRule& GetAcceptRule() const { return m_acceptRule; }
100 inline bool AcceptRuleHasBeenSet() const { return m_acceptRuleHasBeenSet; }
101 template <typename AcceptRuleT = AcceptRule>
102 void SetAcceptRule(AcceptRuleT&& value) {
103 m_acceptRuleHasBeenSet = true;
104 m_acceptRule = std::forward<AcceptRuleT>(value);
105 }
106 template <typename AcceptRuleT = AcceptRule>
108 SetAcceptRule(std::forward<AcceptRuleT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Vector<AcceptChoice>& GetAcceptChoices() const { return m_acceptChoices; }
119 inline bool AcceptChoicesHasBeenSet() const { return m_acceptChoicesHasBeenSet; }
120 template <typename AcceptChoicesT = Aws::Vector<AcceptChoice>>
121 void SetAcceptChoices(AcceptChoicesT&& value) {
122 m_acceptChoicesHasBeenSet = true;
123 m_acceptChoices = std::forward<AcceptChoicesT>(value);
124 }
125 template <typename AcceptChoicesT = Aws::Vector<AcceptChoice>>
127 SetAcceptChoices(std::forward<AcceptChoicesT>(value));
128 return *this;
129 }
130 template <typename AcceptChoicesT = AcceptChoice>
132 m_acceptChoicesHasBeenSet = true;
133 m_acceptChoices.emplace_back(std::forward<AcceptChoicesT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::String& GetClientToken() const { return m_clientToken; }
144 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
145 template <typename ClientTokenT = Aws::String>
146 void SetClientToken(ClientTokenT&& value) {
147 m_clientTokenHasBeenSet = true;
148 m_clientToken = std::forward<ClientTokenT>(value);
149 }
150 template <typename ClientTokenT = Aws::String>
152 SetClientToken(std::forward<ClientTokenT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_domainIdentifier;
158
159 Aws::String m_identifier;
160
161 Aws::String m_revision;
162
163 AcceptRule m_acceptRule;
164
165 Aws::Vector<AcceptChoice> m_acceptChoices;
166
168 bool m_domainIdentifierHasBeenSet = false;
169 bool m_identifierHasBeenSet = false;
170 bool m_revisionHasBeenSet = false;
171 bool m_acceptRuleHasBeenSet = false;
172 bool m_acceptChoicesHasBeenSet = false;
173 bool m_clientTokenHasBeenSet = true;
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