AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
BatchLookupPolicy.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/ObjectReference.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudDirectory {
21namespace Model {
22
32 public:
33 AWS_CLOUDDIRECTORY_API BatchLookupPolicy() = default;
34 AWS_CLOUDDIRECTORY_API BatchLookupPolicy(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDDIRECTORY_API BatchLookupPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const ObjectReference& GetObjectReference() const { return m_objectReference; }
43 inline bool ObjectReferenceHasBeenSet() const { return m_objectReferenceHasBeenSet; }
44 template <typename ObjectReferenceT = ObjectReference>
45 void SetObjectReference(ObjectReferenceT&& value) {
46 m_objectReferenceHasBeenSet = true;
47 m_objectReference = std::forward<ObjectReferenceT>(value);
48 }
49 template <typename ObjectReferenceT = ObjectReference>
50 BatchLookupPolicy& WithObjectReference(ObjectReferenceT&& value) {
51 SetObjectReference(std::forward<ObjectReferenceT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetNextToken() const { return m_nextToken; }
61 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
62 template <typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) {
64 m_nextTokenHasBeenSet = true;
65 m_nextToken = std::forward<NextTokenT>(value);
66 }
67 template <typename NextTokenT = Aws::String>
68 BatchLookupPolicy& WithNextToken(NextTokenT&& value) {
69 SetNextToken(std::forward<NextTokenT>(value));
70 return *this;
71 }
73
75
78 inline int GetMaxResults() const { return m_maxResults; }
79 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
80 inline void SetMaxResults(int value) {
81 m_maxResultsHasBeenSet = true;
82 m_maxResults = value;
83 }
84 inline BatchLookupPolicy& WithMaxResults(int value) {
85 SetMaxResults(value);
86 return *this;
87 }
89 private:
90 ObjectReference m_objectReference;
91
92 Aws::String m_nextToken;
93
94 int m_maxResults{0};
95 bool m_objectReferenceHasBeenSet = false;
96 bool m_nextTokenHasBeenSet = false;
97 bool m_maxResultsHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace CloudDirectory
102} // namespace Aws
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
BatchLookupPolicy & WithObjectReference(ObjectReferenceT &&value)
AWS_CLOUDDIRECTORY_API BatchLookupPolicy(Aws::Utils::Json::JsonView jsonValue)
const ObjectReference & GetObjectReference() const
BatchLookupPolicy & WithMaxResults(int value)
AWS_CLOUDDIRECTORY_API BatchLookupPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetObjectReference(ObjectReferenceT &&value)
BatchLookupPolicy & WithNextToken(NextTokenT &&value)
AWS_CLOUDDIRECTORY_API BatchLookupPolicy()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue