AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListLogSourcesRequest.h
1
6#pragma once
7#include <aws/securitylake/SecurityLake_EXPORTS.h>
8#include <aws/securitylake/SecurityLakeRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/securitylake/model/LogSourceResource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SecurityLake
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SECURITYLAKE_API ListLogSourcesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListLogSources"; }
33
34 AWS_SECURITYLAKE_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
43 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
44 template<typename AccountsT = Aws::Vector<Aws::String>>
45 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
46 template<typename AccountsT = Aws::Vector<Aws::String>>
47 ListLogSourcesRequest& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
48 template<typename AccountsT = Aws::String>
49 ListLogSourcesRequest& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
51
53
56 inline int GetMaxResults() const { return m_maxResults; }
57 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
58 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
59 inline ListLogSourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
61
63
67 inline const Aws::String& GetNextToken() const { return m_nextToken; }
68 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
69 template<typename NextTokenT = Aws::String>
70 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
71 template<typename NextTokenT = Aws::String>
72 ListLogSourcesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
74
76
79 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
80 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
81 template<typename RegionsT = Aws::Vector<Aws::String>>
82 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
83 template<typename RegionsT = Aws::Vector<Aws::String>>
84 ListLogSourcesRequest& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
85 template<typename RegionsT = Aws::String>
86 ListLogSourcesRequest& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
88
90
93 inline const Aws::Vector<LogSourceResource>& GetSources() const { return m_sources; }
94 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
95 template<typename SourcesT = Aws::Vector<LogSourceResource>>
96 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
97 template<typename SourcesT = Aws::Vector<LogSourceResource>>
98 ListLogSourcesRequest& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
99 template<typename SourcesT = LogSourceResource>
100 ListLogSourcesRequest& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
102 private:
103
104 Aws::Vector<Aws::String> m_accounts;
105 bool m_accountsHasBeenSet = false;
106
107 int m_maxResults{0};
108 bool m_maxResultsHasBeenSet = false;
109
110 Aws::String m_nextToken;
111 bool m_nextTokenHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_regions;
114 bool m_regionsHasBeenSet = false;
115
117 bool m_sourcesHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace SecurityLake
122} // namespace Aws
AWS_SECURITYLAKE_API Aws::String SerializePayload() const override
const Aws::Vector< LogSourceResource > & GetSources() const
ListLogSourcesRequest & WithAccounts(AccountsT &&value)
ListLogSourcesRequest & WithNextToken(NextTokenT &&value)
ListLogSourcesRequest & WithSources(SourcesT &&value)
ListLogSourcesRequest & WithRegions(RegionsT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
ListLogSourcesRequest & WithMaxResults(int value)
AWS_SECURITYLAKE_API ListLogSourcesRequest()=default
ListLogSourcesRequest & AddSources(SourcesT &&value)
const Aws::Vector< Aws::String > & GetAccounts() const
ListLogSourcesRequest & AddRegions(RegionsT &&value)
ListLogSourcesRequest & AddAccounts(AccountsT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector