AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
GetDataLakeSourcesRequest.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/securitylake/SecurityLakeRequest.h>
10#include <aws/securitylake/SecurityLake_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityLake {
16namespace Model {
17
21 public:
22 AWS_SECURITYLAKE_API GetDataLakeSourcesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetDataLakeSources"; }
29
30 AWS_SECURITYLAKE_API Aws::String SerializePayload() const override;
31
33
38 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
39 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
40 template <typename AccountsT = Aws::Vector<Aws::String>>
41 void SetAccounts(AccountsT&& value) {
42 m_accountsHasBeenSet = true;
43 m_accounts = std::forward<AccountsT>(value);
44 }
45 template <typename AccountsT = Aws::Vector<Aws::String>>
47 SetAccounts(std::forward<AccountsT>(value));
48 return *this;
49 }
50 template <typename AccountsT = Aws::String>
52 m_accountsHasBeenSet = true;
53 m_accounts.emplace_back(std::forward<AccountsT>(value));
54 return *this;
55 }
57
59
63 inline int GetMaxResults() const { return m_maxResults; }
64 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 inline void SetMaxResults(int value) {
66 m_maxResultsHasBeenSet = true;
67 m_maxResults = value;
68 }
70 SetMaxResults(value);
71 return *this;
72 }
74
76
83 inline const Aws::String& GetNextToken() const { return m_nextToken; }
84 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 template <typename NextTokenT = Aws::String>
86 void SetNextToken(NextTokenT&& value) {
87 m_nextTokenHasBeenSet = true;
88 m_nextToken = std::forward<NextTokenT>(value);
89 }
90 template <typename NextTokenT = Aws::String>
92 SetNextToken(std::forward<NextTokenT>(value));
93 return *this;
94 }
96 private:
97 Aws::Vector<Aws::String> m_accounts;
98 bool m_accountsHasBeenSet = false;
99
100 int m_maxResults{0};
101 bool m_maxResultsHasBeenSet = false;
102
103 Aws::String m_nextToken;
104 bool m_nextTokenHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace SecurityLake
109} // namespace Aws
AWS_SECURITYLAKE_API GetDataLakeSourcesRequest()=default
GetDataLakeSourcesRequest & WithNextToken(NextTokenT &&value)
AWS_SECURITYLAKE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GetDataLakeSourcesRequest & WithAccounts(AccountsT &&value)
GetDataLakeSourcesRequest & AddAccounts(AccountsT &&value)
const Aws::Vector< Aws::String > & GetAccounts() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector