AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAcceptChoices(const Aws::Vector<AcceptChoice>& value) { m_acceptChoicesHasBeenSet = true; m_acceptChoices = value; }
53 inline void SetAcceptChoices(Aws::Vector<AcceptChoice>&& value) { m_acceptChoicesHasBeenSet = true; m_acceptChoices = std::move(value); }
55 inline AcceptPredictionsRequest& WithAcceptChoices(Aws::Vector<AcceptChoice>&& value) { SetAcceptChoices(std::move(value)); return *this;}
56 inline AcceptPredictionsRequest& AddAcceptChoices(const AcceptChoice& value) { m_acceptChoicesHasBeenSet = true; m_acceptChoices.push_back(value); return *this; }
57 inline AcceptPredictionsRequest& AddAcceptChoices(AcceptChoice&& value) { m_acceptChoicesHasBeenSet = true; m_acceptChoices.push_back(std::move(value)); return *this; }
59
61
65 inline const AcceptRule& GetAcceptRule() const{ return m_acceptRule; }
66 inline bool AcceptRuleHasBeenSet() const { return m_acceptRuleHasBeenSet; }
67 inline void SetAcceptRule(const AcceptRule& value) { m_acceptRuleHasBeenSet = true; m_acceptRule = value; }
68 inline void SetAcceptRule(AcceptRule&& value) { m_acceptRuleHasBeenSet = true; m_acceptRule = std::move(value); }
69 inline AcceptPredictionsRequest& WithAcceptRule(const AcceptRule& value) { SetAcceptRule(value); return *this;}
70 inline AcceptPredictionsRequest& WithAcceptRule(AcceptRule&& value) { SetAcceptRule(std::move(value)); return *this;}
72
74
78 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
79 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
80 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
81 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
82 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
83 inline AcceptPredictionsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
84 inline AcceptPredictionsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
85 inline AcceptPredictionsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
87
89
92 inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; }
93 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
94 inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; }
95 inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); }
96 inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); }
98 inline AcceptPredictionsRequest& WithDomainIdentifier(Aws::String&& value) { SetDomainIdentifier(std::move(value)); return *this;}
99 inline AcceptPredictionsRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;}
101
103
106 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
107 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
108 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
109 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
110 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
111 inline AcceptPredictionsRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
112 inline AcceptPredictionsRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
113 inline AcceptPredictionsRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
115
117
120 inline const Aws::String& GetRevision() const{ return m_revision; }
121 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
122 inline void SetRevision(const Aws::String& value) { m_revisionHasBeenSet = true; m_revision = value; }
123 inline void SetRevision(Aws::String&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); }
124 inline void SetRevision(const char* value) { m_revisionHasBeenSet = true; m_revision.assign(value); }
125 inline AcceptPredictionsRequest& WithRevision(const Aws::String& value) { SetRevision(value); return *this;}
126 inline AcceptPredictionsRequest& WithRevision(Aws::String&& value) { SetRevision(std::move(value)); return *this;}
127 inline AcceptPredictionsRequest& WithRevision(const char* value) { SetRevision(value); return *this;}
129 private:
130
131 Aws::Vector<AcceptChoice> m_acceptChoices;
132 bool m_acceptChoicesHasBeenSet = false;
133
134 AcceptRule m_acceptRule;
135 bool m_acceptRuleHasBeenSet = false;
136
137 Aws::String m_clientToken;
138 bool m_clientTokenHasBeenSet = false;
139
140 Aws::String m_domainIdentifier;
141 bool m_domainIdentifierHasBeenSet = false;
142
143 Aws::String m_identifier;
144 bool m_identifierHasBeenSet = false;
145
146 Aws::String m_revision;
147 bool m_revisionHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace DataZone
152} // namespace Aws
AcceptPredictionsRequest & AddAcceptChoices(AcceptChoice &&value)
AcceptPredictionsRequest & WithClientToken(const Aws::String &value)
AcceptPredictionsRequest & WithIdentifier(const char *value)
void SetAcceptChoices(Aws::Vector< AcceptChoice > &&value)
AcceptPredictionsRequest & WithAcceptRule(AcceptRule &&value)
AcceptPredictionsRequest & WithIdentifier(Aws::String &&value)
AcceptPredictionsRequest & WithRevision(const char *value)
AcceptPredictionsRequest & AddAcceptChoices(const AcceptChoice &value)
AcceptPredictionsRequest & WithDomainIdentifier(const Aws::String &value)
void SetAcceptChoices(const Aws::Vector< AcceptChoice > &value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AcceptPredictionsRequest & WithAcceptChoices(const Aws::Vector< AcceptChoice > &value)
AcceptPredictionsRequest & WithDomainIdentifier(Aws::String &&value)
AcceptPredictionsRequest & WithAcceptRule(const AcceptRule &value)
AcceptPredictionsRequest & WithDomainIdentifier(const char *value)
const Aws::Vector< AcceptChoice > & GetAcceptChoices() const
AcceptPredictionsRequest & WithClientToken(Aws::String &&value)
AcceptPredictionsRequest & WithAcceptChoices(Aws::Vector< AcceptChoice > &&value)
AcceptPredictionsRequest & WithRevision(const Aws::String &value)
AcceptPredictionsRequest & WithRevision(Aws::String &&value)
AcceptPredictionsRequest & WithIdentifier(const Aws::String &value)
AcceptPredictionsRequest & WithClientToken(const char *value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector