AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DescribeTrustsRequest.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/ds/DirectoryServiceRequest.h>
10#include <aws/ds/DirectoryService_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DirectoryService {
16namespace Model {
17
27 public:
28 AWS_DIRECTORYSERVICE_API DescribeTrustsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DescribeTrusts"; }
35
36 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
45 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
46 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
47 template <typename DirectoryIdT = Aws::String>
48 void SetDirectoryId(DirectoryIdT&& value) {
49 m_directoryIdHasBeenSet = true;
50 m_directoryId = std::forward<DirectoryIdT>(value);
51 }
52 template <typename DirectoryIdT = Aws::String>
53 DescribeTrustsRequest& WithDirectoryId(DirectoryIdT&& value) {
54 SetDirectoryId(std::forward<DirectoryIdT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::Vector<Aws::String>& GetTrustIds() const { return m_trustIds; }
67 inline bool TrustIdsHasBeenSet() const { return m_trustIdsHasBeenSet; }
68 template <typename TrustIdsT = Aws::Vector<Aws::String>>
69 void SetTrustIds(TrustIdsT&& value) {
70 m_trustIdsHasBeenSet = true;
71 m_trustIds = std::forward<TrustIdsT>(value);
72 }
73 template <typename TrustIdsT = Aws::Vector<Aws::String>>
74 DescribeTrustsRequest& WithTrustIds(TrustIdsT&& value) {
75 SetTrustIds(std::forward<TrustIdsT>(value));
76 return *this;
77 }
78 template <typename TrustIdsT = Aws::String>
79 DescribeTrustsRequest& AddTrustIds(TrustIdsT&& value) {
80 m_trustIdsHasBeenSet = true;
81 m_trustIds.emplace_back(std::forward<TrustIdsT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetNextToken() const { return m_nextToken; }
92 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
93 template <typename NextTokenT = Aws::String>
94 void SetNextToken(NextTokenT&& value) {
95 m_nextTokenHasBeenSet = true;
96 m_nextToken = std::forward<NextTokenT>(value);
97 }
98 template <typename NextTokenT = Aws::String>
99 DescribeTrustsRequest& WithNextToken(NextTokenT&& value) {
100 SetNextToken(std::forward<NextTokenT>(value));
101 return *this;
102 }
104
106
109 inline int GetLimit() const { return m_limit; }
110 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
111 inline void SetLimit(int value) {
112 m_limitHasBeenSet = true;
113 m_limit = value;
114 }
115 inline DescribeTrustsRequest& WithLimit(int value) {
116 SetLimit(value);
117 return *this;
118 }
120 private:
121 Aws::String m_directoryId;
122
123 Aws::Vector<Aws::String> m_trustIds;
124
125 Aws::String m_nextToken;
126
127 int m_limit{0};
128 bool m_directoryIdHasBeenSet = false;
129 bool m_trustIdsHasBeenSet = false;
130 bool m_nextTokenHasBeenSet = false;
131 bool m_limitHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace DirectoryService
136} // namespace Aws
DescribeTrustsRequest & WithTrustIds(TrustIdsT &&value)
AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override
DescribeTrustsRequest & AddTrustIds(TrustIdsT &&value)
DescribeTrustsRequest & WithNextToken(NextTokenT &&value)
AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetTrustIds() const
AWS_DIRECTORYSERVICE_API DescribeTrustsRequest()=default
DescribeTrustsRequest & WithDirectoryId(DirectoryIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector