AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccounts(const Aws::Vector<Aws::String>& value) { m_accountsHasBeenSet = true; m_accounts = value; }
52 inline void SetAccounts(Aws::Vector<Aws::String>&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); }
53 inline AwsLogSourceConfiguration& WithAccounts(const Aws::Vector<Aws::String>& value) { SetAccounts(value); return *this;}
54 inline AwsLogSourceConfiguration& WithAccounts(Aws::Vector<Aws::String>&& value) { SetAccounts(std::move(value)); return *this;}
55 inline AwsLogSourceConfiguration& AddAccounts(const Aws::String& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
56 inline AwsLogSourceConfiguration& AddAccounts(Aws::String&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; }
57 inline AwsLogSourceConfiguration& AddAccounts(const char* value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
59
61
64 inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
65 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
66 inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
67 inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
68 inline AwsLogSourceConfiguration& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
69 inline AwsLogSourceConfiguration& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
70 inline AwsLogSourceConfiguration& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
71 inline AwsLogSourceConfiguration& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
72 inline AwsLogSourceConfiguration& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
74
76
79 inline const AwsLogSourceName& GetSourceName() const{ return m_sourceName; }
80 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
81 inline void SetSourceName(const AwsLogSourceName& value) { m_sourceNameHasBeenSet = true; m_sourceName = value; }
82 inline void SetSourceName(AwsLogSourceName&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::move(value); }
83 inline AwsLogSourceConfiguration& WithSourceName(const AwsLogSourceName& value) { SetSourceName(value); return *this;}
84 inline AwsLogSourceConfiguration& WithSourceName(AwsLogSourceName&& value) { SetSourceName(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
92 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
93 inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
94 inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
95 inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
96 inline AwsLogSourceConfiguration& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
97 inline AwsLogSourceConfiguration& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
98 inline AwsLogSourceConfiguration& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
100 private:
101
102 Aws::Vector<Aws::String> m_accounts;
103 bool m_accountsHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_regions;
106 bool m_regionsHasBeenSet = false;
107
108 AwsLogSourceName m_sourceName;
109 bool m_sourceNameHasBeenSet = false;
110
111 Aws::String m_sourceVersion;
112 bool m_sourceVersionHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace SecurityLake
117} // namespace Aws
AwsLogSourceConfiguration & AddAccounts(Aws::String &&value)
void SetRegions(const Aws::Vector< Aws::String > &value)
void SetRegions(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAccounts() const
AwsLogSourceConfiguration & WithAccounts(const Aws::Vector< Aws::String > &value)
AwsLogSourceConfiguration & AddRegions(const Aws::String &value)
AwsLogSourceConfiguration & WithSourceVersion(const char *value)
AwsLogSourceConfiguration & AddAccounts(const Aws::String &value)
const Aws::Vector< Aws::String > & GetRegions() const
void SetAccounts(const Aws::Vector< Aws::String > &value)
AWS_SECURITYLAKE_API AwsLogSourceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsLogSourceConfiguration & AddAccounts(const char *value)
AwsLogSourceConfiguration & WithRegions(Aws::Vector< Aws::String > &&value)
AwsLogSourceConfiguration & WithSourceVersion(const Aws::String &value)
AwsLogSourceConfiguration & AddRegions(const char *value)
AwsLogSourceConfiguration & WithAccounts(Aws::Vector< Aws::String > &&value)
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
AwsLogSourceConfiguration & WithRegions(const Aws::Vector< Aws::String > &value)
AwsLogSourceConfiguration & WithSourceName(AwsLogSourceName &&value)
AwsLogSourceConfiguration & WithSourceName(const AwsLogSourceName &value)
AwsLogSourceConfiguration & AddRegions(Aws::String &&value)
AwsLogSourceConfiguration & WithSourceVersion(Aws::String &&value)
void SetAccounts(Aws::Vector< Aws::String > &&value)
AWS_SECURITYLAKE_API AwsLogSourceConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue