AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsLogSourceConfiguration.h
1
6#pragma once
7#include <aws/securitylake/SecurityLake_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securitylake/model/AwsLogSourceName.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityLake
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_SECURITYLAKE_API AwsLogSourceConfiguration() = default;
41 AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
50 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
51 template<typename AccountsT = Aws::Vector<Aws::String>>
52 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
53 template<typename AccountsT = Aws::Vector<Aws::String>>
54 AwsLogSourceConfiguration& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
55 template<typename AccountsT = Aws::String>
56 AwsLogSourceConfiguration& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
58
60
63 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
64 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
65 template<typename RegionsT = Aws::Vector<Aws::String>>
66 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
67 template<typename RegionsT = Aws::Vector<Aws::String>>
68 AwsLogSourceConfiguration& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
69 template<typename RegionsT = Aws::String>
70 AwsLogSourceConfiguration& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
72
74
77 inline AwsLogSourceName GetSourceName() const { return m_sourceName; }
78 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
79 inline void SetSourceName(AwsLogSourceName value) { m_sourceNameHasBeenSet = true; m_sourceName = value; }
82
84
87 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
88 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
89 template<typename SourceVersionT = Aws::String>
90 void SetSourceVersion(SourceVersionT&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::forward<SourceVersionT>(value); }
91 template<typename SourceVersionT = Aws::String>
92 AwsLogSourceConfiguration& WithSourceVersion(SourceVersionT&& value) { SetSourceVersion(std::forward<SourceVersionT>(value)); return *this;}
94 private:
95
96 Aws::Vector<Aws::String> m_accounts;
97 bool m_accountsHasBeenSet = false;
98
100 bool m_regionsHasBeenSet = false;
101
103 bool m_sourceNameHasBeenSet = false;
104
105 Aws::String m_sourceVersion;
106 bool m_sourceVersionHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SecurityLake
111} // namespace Aws
const Aws::Vector< Aws::String > & GetAccounts() const
AwsLogSourceConfiguration & AddRegions(RegionsT &&value)
AwsLogSourceConfiguration & WithRegions(RegionsT &&value)
const Aws::Vector< Aws::String > & GetRegions() const
AWS_SECURITYLAKE_API AwsLogSourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYLAKE_API AwsLogSourceConfiguration()=default
AwsLogSourceConfiguration & AddAccounts(AccountsT &&value)
AwsLogSourceConfiguration & WithSourceVersion(SourceVersionT &&value)
AwsLogSourceConfiguration & WithSourceName(AwsLogSourceName value)
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYLAKE_API AwsLogSourceConfiguration(Aws::Utils::Json::JsonView jsonValue)
AwsLogSourceConfiguration & WithAccounts(AccountsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue