AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RejectPredictionsRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datazone/model/RejectRule.h>
12#include <aws/datazone/model/RejectChoice.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace DataZone
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_DATAZONE_API RejectPredictionsRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "RejectPredictions"; }
39
40 AWS_DATAZONE_API Aws::String SerializePayload() const override;
41
42 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
50 inline const Aws::String& GetClientToken() const { return m_clientToken; }
51 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
52 template<typename ClientTokenT = Aws::String>
53 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
54 template<typename ClientTokenT = Aws::String>
55 RejectPredictionsRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
57
59
62 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
63 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
64 template<typename DomainIdentifierT = Aws::String>
65 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
66 template<typename DomainIdentifierT = Aws::String>
67 RejectPredictionsRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
69
71
74 inline const Aws::String& GetIdentifier() const { return m_identifier; }
75 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
76 template<typename IdentifierT = Aws::String>
77 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
78 template<typename IdentifierT = Aws::String>
79 RejectPredictionsRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
81
83
87 inline const Aws::Vector<RejectChoice>& GetRejectChoices() const { return m_rejectChoices; }
88 inline bool RejectChoicesHasBeenSet() const { return m_rejectChoicesHasBeenSet; }
89 template<typename RejectChoicesT = Aws::Vector<RejectChoice>>
90 void SetRejectChoices(RejectChoicesT&& value) { m_rejectChoicesHasBeenSet = true; m_rejectChoices = std::forward<RejectChoicesT>(value); }
91 template<typename RejectChoicesT = Aws::Vector<RejectChoice>>
92 RejectPredictionsRequest& WithRejectChoices(RejectChoicesT&& value) { SetRejectChoices(std::forward<RejectChoicesT>(value)); return *this;}
93 template<typename RejectChoicesT = RejectChoice>
94 RejectPredictionsRequest& AddRejectChoices(RejectChoicesT&& value) { m_rejectChoicesHasBeenSet = true; m_rejectChoices.emplace_back(std::forward<RejectChoicesT>(value)); return *this; }
96
98
102 inline const RejectRule& GetRejectRule() const { return m_rejectRule; }
103 inline bool RejectRuleHasBeenSet() const { return m_rejectRuleHasBeenSet; }
104 template<typename RejectRuleT = RejectRule>
105 void SetRejectRule(RejectRuleT&& value) { m_rejectRuleHasBeenSet = true; m_rejectRule = std::forward<RejectRuleT>(value); }
106 template<typename RejectRuleT = RejectRule>
107 RejectPredictionsRequest& WithRejectRule(RejectRuleT&& value) { SetRejectRule(std::forward<RejectRuleT>(value)); return *this;}
109
111
114 inline const Aws::String& GetRevision() const { return m_revision; }
115 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
116 template<typename RevisionT = Aws::String>
117 void SetRevision(RevisionT&& value) { m_revisionHasBeenSet = true; m_revision = std::forward<RevisionT>(value); }
118 template<typename RevisionT = Aws::String>
119 RejectPredictionsRequest& WithRevision(RevisionT&& value) { SetRevision(std::forward<RevisionT>(value)); return *this;}
121 private:
122
124 bool m_clientTokenHasBeenSet = true;
125
126 Aws::String m_domainIdentifier;
127 bool m_domainIdentifierHasBeenSet = false;
128
129 Aws::String m_identifier;
130 bool m_identifierHasBeenSet = false;
131
132 Aws::Vector<RejectChoice> m_rejectChoices;
133 bool m_rejectChoicesHasBeenSet = false;
134
135 RejectRule m_rejectRule;
136 bool m_rejectRuleHasBeenSet = false;
137
138 Aws::String m_revision;
139 bool m_revisionHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace DataZone
144} // 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