AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AcceptPredictionsRequest.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/AWSVector.h>
10#include <aws/datazone/model/AcceptRule.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/datazone/model/AcceptChoice.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 AcceptPredictionsRequest() = 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 "AcceptPredictions"; }
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::Vector<AcceptChoice>& GetAcceptChoices() const { return m_acceptChoices; }
51 inline bool AcceptChoicesHasBeenSet() const { return m_acceptChoicesHasBeenSet; }
52 template<typename AcceptChoicesT = Aws::Vector<AcceptChoice>>
53 void SetAcceptChoices(AcceptChoicesT&& value) { m_acceptChoicesHasBeenSet = true; m_acceptChoices = std::forward<AcceptChoicesT>(value); }
54 template<typename AcceptChoicesT = Aws::Vector<AcceptChoice>>
55 AcceptPredictionsRequest& WithAcceptChoices(AcceptChoicesT&& value) { SetAcceptChoices(std::forward<AcceptChoicesT>(value)); return *this;}
56 template<typename AcceptChoicesT = AcceptChoice>
57 AcceptPredictionsRequest& AddAcceptChoices(AcceptChoicesT&& value) { m_acceptChoicesHasBeenSet = true; m_acceptChoices.emplace_back(std::forward<AcceptChoicesT>(value)); return *this; }
59
61
65 inline const AcceptRule& GetAcceptRule() const { return m_acceptRule; }
66 inline bool AcceptRuleHasBeenSet() const { return m_acceptRuleHasBeenSet; }
67 template<typename AcceptRuleT = AcceptRule>
68 void SetAcceptRule(AcceptRuleT&& value) { m_acceptRuleHasBeenSet = true; m_acceptRule = std::forward<AcceptRuleT>(value); }
69 template<typename AcceptRuleT = AcceptRule>
70 AcceptPredictionsRequest& WithAcceptRule(AcceptRuleT&& value) { SetAcceptRule(std::forward<AcceptRuleT>(value)); return *this;}
72
74
78 inline const Aws::String& GetClientToken() const { return m_clientToken; }
79 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
80 template<typename ClientTokenT = Aws::String>
81 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
82 template<typename ClientTokenT = Aws::String>
83 AcceptPredictionsRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
85
87
90 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
91 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
92 template<typename DomainIdentifierT = Aws::String>
93 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
94 template<typename DomainIdentifierT = Aws::String>
95 AcceptPredictionsRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
97
99
102 inline const Aws::String& GetIdentifier() const { return m_identifier; }
103 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
104 template<typename IdentifierT = Aws::String>
105 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
106 template<typename IdentifierT = Aws::String>
107 AcceptPredictionsRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(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 AcceptPredictionsRequest& WithRevision(RevisionT&& value) { SetRevision(std::forward<RevisionT>(value)); return *this;}
121 private:
122
123 Aws::Vector<AcceptChoice> m_acceptChoices;
124 bool m_acceptChoicesHasBeenSet = false;
125
126 AcceptRule m_acceptRule;
127 bool m_acceptRuleHasBeenSet = false;
128
130 bool m_clientTokenHasBeenSet = true;
131
132 Aws::String m_domainIdentifier;
133 bool m_domainIdentifierHasBeenSet = false;
134
135 Aws::String m_identifier;
136 bool m_identifierHasBeenSet = false;
137
138 Aws::String m_revision;
139 bool m_revisionHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace DataZone
144} // 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