AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeTrustsRequest.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/ds/DirectoryServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DirectoryService
16{
17namespace Model
18{
19
29 {
30 public:
31 AWS_DIRECTORYSERVICE_API DescribeTrustsRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "DescribeTrusts"; }
38
39 AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override;
40
41 AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
49 inline const Aws::String& GetDirectoryId() const { return m_directoryId; }
50 inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
51 template<typename DirectoryIdT = Aws::String>
52 void SetDirectoryId(DirectoryIdT&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::forward<DirectoryIdT>(value); }
53 template<typename DirectoryIdT = Aws::String>
54 DescribeTrustsRequest& WithDirectoryId(DirectoryIdT&& value) { SetDirectoryId(std::forward<DirectoryIdT>(value)); return *this;}
56
58
64 inline const Aws::Vector<Aws::String>& GetTrustIds() const { return m_trustIds; }
65 inline bool TrustIdsHasBeenSet() const { return m_trustIdsHasBeenSet; }
66 template<typename TrustIdsT = Aws::Vector<Aws::String>>
67 void SetTrustIds(TrustIdsT&& value) { m_trustIdsHasBeenSet = true; m_trustIds = std::forward<TrustIdsT>(value); }
68 template<typename TrustIdsT = Aws::Vector<Aws::String>>
69 DescribeTrustsRequest& WithTrustIds(TrustIdsT&& value) { SetTrustIds(std::forward<TrustIdsT>(value)); return *this;}
70 template<typename TrustIdsT = Aws::String>
71 DescribeTrustsRequest& AddTrustIds(TrustIdsT&& value) { m_trustIdsHasBeenSet = true; m_trustIds.emplace_back(std::forward<TrustIdsT>(value)); return *this; }
73
75
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 template<typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
83 template<typename NextTokenT = Aws::String>
84 DescribeTrustsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
86
88
91 inline int GetLimit() const { return m_limit; }
92 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
93 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
94 inline DescribeTrustsRequest& WithLimit(int value) { SetLimit(value); return *this;}
96 private:
97
98 Aws::String m_directoryId;
99 bool m_directoryIdHasBeenSet = false;
100
101 Aws::Vector<Aws::String> m_trustIds;
102 bool m_trustIdsHasBeenSet = false;
103
104 Aws::String m_nextToken;
105 bool m_nextTokenHasBeenSet = false;
106
107 int m_limit{0};
108 bool m_limitHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace DirectoryService
113} // 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