AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
QueryGraphRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/AdditionalAttributes.h>
12#include <aws/datazone/model/MatchClause.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace DataZone {
21namespace Model {
22
26 public:
27 AWS_DATAZONE_API QueryGraphRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "QueryGraph"; }
34
35 AWS_DATAZONE_API Aws::String SerializePayload() const override;
36
37 AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
43 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
44 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
45 template <typename DomainIdentifierT = Aws::String>
46 void SetDomainIdentifier(DomainIdentifierT&& value) {
47 m_domainIdentifierHasBeenSet = true;
48 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
49 }
50 template <typename DomainIdentifierT = Aws::String>
51 QueryGraphRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
52 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<MatchClause>& GetMatch() const { return m_match; }
62 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
63 template <typename MatchT = Aws::Vector<MatchClause>>
64 void SetMatch(MatchT&& value) {
65 m_matchHasBeenSet = true;
66 m_match = std::forward<MatchT>(value);
67 }
68 template <typename MatchT = Aws::Vector<MatchClause>>
69 QueryGraphRequest& WithMatch(MatchT&& value) {
70 SetMatch(std::forward<MatchT>(value));
71 return *this;
72 }
73 template <typename MatchT = MatchClause>
74 QueryGraphRequest& AddMatch(MatchT&& value) {
75 m_matchHasBeenSet = true;
76 m_match.emplace_back(std::forward<MatchT>(value));
77 return *this;
78 }
80
82
89 inline int GetMaxResults() const { return m_maxResults; }
90 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
91 inline void SetMaxResults(int value) {
92 m_maxResultsHasBeenSet = true;
93 m_maxResults = value;
94 }
95 inline QueryGraphRequest& WithMaxResults(int value) {
96 SetMaxResults(value);
97 return *this;
98 }
100
102
110 inline const Aws::String& GetNextToken() const { return m_nextToken; }
111 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
112 template <typename NextTokenT = Aws::String>
113 void SetNextToken(NextTokenT&& value) {
114 m_nextTokenHasBeenSet = true;
115 m_nextToken = std::forward<NextTokenT>(value);
116 }
117 template <typename NextTokenT = Aws::String>
118 QueryGraphRequest& WithNextToken(NextTokenT&& value) {
119 SetNextToken(std::forward<NextTokenT>(value));
120 return *this;
121 }
123
125
129 inline const AdditionalAttributes& GetAdditionalAttributes() const { return m_additionalAttributes; }
130 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
131 template <typename AdditionalAttributesT = AdditionalAttributes>
132 void SetAdditionalAttributes(AdditionalAttributesT&& value) {
133 m_additionalAttributesHasBeenSet = true;
134 m_additionalAttributes = std::forward<AdditionalAttributesT>(value);
135 }
136 template <typename AdditionalAttributesT = AdditionalAttributes>
137 QueryGraphRequest& WithAdditionalAttributes(AdditionalAttributesT&& value) {
138 SetAdditionalAttributes(std::forward<AdditionalAttributesT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_domainIdentifier;
144
146
147 int m_maxResults{0};
148
149 Aws::String m_nextToken;
150
151 AdditionalAttributes m_additionalAttributes;
152 bool m_domainIdentifierHasBeenSet = false;
153 bool m_matchHasBeenSet = false;
154 bool m_maxResultsHasBeenSet = false;
155 bool m_nextTokenHasBeenSet = false;
156 bool m_additionalAttributesHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace DataZone
161} // namespace Aws
QueryGraphRequest & WithMatch(MatchT &&value)
QueryGraphRequest & AddMatch(MatchT &&value)
const Aws::String & GetDomainIdentifier() const
const Aws::Vector< MatchClause > & GetMatch() const
QueryGraphRequest & WithNextToken(NextTokenT &&value)
QueryGraphRequest & WithAdditionalAttributes(AdditionalAttributesT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DATAZONE_API Aws::String SerializePayload() const override
void SetDomainIdentifier(DomainIdentifierT &&value)
const Aws::String & GetNextToken() const
QueryGraphRequest & WithDomainIdentifier(DomainIdentifierT &&value)
void SetAdditionalAttributes(AdditionalAttributesT &&value)
QueryGraphRequest & WithMaxResults(int value)
const AdditionalAttributes & GetAdditionalAttributes() const
AWS_DATAZONE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_DATAZONE_API QueryGraphRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector