AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccounts(const Aws::Vector<Aws::String>& value) { m_accountsHasBeenSet = true; m_accounts = value; }
45 inline void SetAccounts(Aws::Vector<Aws::String>&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); }
46 inline ListLogSourcesRequest& WithAccounts(const Aws::Vector<Aws::String>& value) { SetAccounts(value); return *this;}
47 inline ListLogSourcesRequest& WithAccounts(Aws::Vector<Aws::String>&& value) { SetAccounts(std::move(value)); return *this;}
48 inline ListLogSourcesRequest& AddAccounts(const Aws::String& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
49 inline ListLogSourcesRequest& AddAccounts(Aws::String&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; }
50 inline ListLogSourcesRequest& AddAccounts(const char* value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
52
54
57 inline int GetMaxResults() const{ return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
60 inline ListLogSourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
62
64
68 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
69 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
70 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
71 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
72 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
73 inline ListLogSourcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
74 inline ListLogSourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
75 inline ListLogSourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
77
79
82 inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
83 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
84 inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
85 inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
86 inline ListLogSourcesRequest& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
87 inline ListLogSourcesRequest& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
88 inline ListLogSourcesRequest& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
89 inline ListLogSourcesRequest& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
90 inline ListLogSourcesRequest& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
92
94
97 inline const Aws::Vector<LogSourceResource>& GetSources() const{ return m_sources; }
98 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
99 inline void SetSources(const Aws::Vector<LogSourceResource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
100 inline void SetSources(Aws::Vector<LogSourceResource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
101 inline ListLogSourcesRequest& WithSources(const Aws::Vector<LogSourceResource>& value) { SetSources(value); return *this;}
102 inline ListLogSourcesRequest& WithSources(Aws::Vector<LogSourceResource>&& value) { SetSources(std::move(value)); return *this;}
103 inline ListLogSourcesRequest& AddSources(const LogSourceResource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
104 inline ListLogSourcesRequest& AddSources(LogSourceResource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
106 private:
107
108 Aws::Vector<Aws::String> m_accounts;
109 bool m_accountsHasBeenSet = false;
110
111 int m_maxResults;
112 bool m_maxResultsHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_regions;
118 bool m_regionsHasBeenSet = false;
119
121 bool m_sourcesHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace SecurityLake
126} // namespace Aws
ListLogSourcesRequest & WithAccounts(Aws::Vector< Aws::String > &&value)
ListLogSourcesRequest & WithRegions(const Aws::Vector< Aws::String > &value)
ListLogSourcesRequest & AddAccounts(Aws::String &&value)
AWS_SECURITYLAKE_API Aws::String SerializePayload() const override
const Aws::Vector< LogSourceResource > & GetSources() const
ListLogSourcesRequest & WithAccounts(const Aws::Vector< Aws::String > &value)
void SetSources(const Aws::Vector< LogSourceResource > &value)
ListLogSourcesRequest & AddRegions(const char *value)
void SetSources(Aws::Vector< LogSourceResource > &&value)
ListLogSourcesRequest & AddAccounts(const char *value)
ListLogSourcesRequest & WithRegions(Aws::Vector< Aws::String > &&value)
ListLogSourcesRequest & WithSources(const Aws::Vector< LogSourceResource > &value)
ListLogSourcesRequest & AddRegions(const Aws::String &value)
const Aws::Vector< Aws::String > & GetRegions() const
void SetRegions(const Aws::Vector< Aws::String > &value)
ListLogSourcesRequest & WithSources(Aws::Vector< LogSourceResource > &&value)
ListLogSourcesRequest & AddSources(LogSourceResource &&value)
ListLogSourcesRequest & WithMaxResults(int value)
ListLogSourcesRequest & WithNextToken(const char *value)
ListLogSourcesRequest & AddAccounts(const Aws::String &value)
ListLogSourcesRequest & AddSources(const LogSourceResource &value)
const Aws::Vector< Aws::String > & GetAccounts() const
ListLogSourcesRequest & AddRegions(Aws::String &&value)
void SetRegions(Aws::Vector< Aws::String > &&value)
ListLogSourcesRequest & WithNextToken(Aws::String &&value)
ListLogSourcesRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetAccounts(const Aws::Vector< Aws::String > &value)
void SetAccounts(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector