AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LogSource.h
1
6#pragma once
7#include <aws/securitylake/SecurityLake_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securitylake/model/LogSourceResource.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
35 {
36 public:
37 AWS_SECURITYLAKE_API LogSource();
38 AWS_SECURITYLAKE_API LogSource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYLAKE_API LogSource& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetAccount() const{ return m_account; }
48 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
49 inline void SetAccount(const Aws::String& value) { m_accountHasBeenSet = true; m_account = value; }
50 inline void SetAccount(Aws::String&& value) { m_accountHasBeenSet = true; m_account = std::move(value); }
51 inline void SetAccount(const char* value) { m_accountHasBeenSet = true; m_account.assign(value); }
52 inline LogSource& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
53 inline LogSource& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;}
54 inline LogSource& WithAccount(const char* value) { SetAccount(value); return *this;}
56
58
61 inline const Aws::String& GetRegion() const{ return m_region; }
62 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
63 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
64 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
65 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
66 inline LogSource& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
67 inline LogSource& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
68 inline LogSource& WithRegion(const char* value) { SetRegion(value); return *this;}
70
72
75 inline const Aws::Vector<LogSourceResource>& GetSources() const{ return m_sources; }
76 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
77 inline void SetSources(const Aws::Vector<LogSourceResource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
78 inline void SetSources(Aws::Vector<LogSourceResource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
79 inline LogSource& WithSources(const Aws::Vector<LogSourceResource>& value) { SetSources(value); return *this;}
80 inline LogSource& WithSources(Aws::Vector<LogSourceResource>&& value) { SetSources(std::move(value)); return *this;}
81 inline LogSource& AddSources(const LogSourceResource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
82 inline LogSource& AddSources(LogSourceResource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
84 private:
85
86 Aws::String m_account;
87 bool m_accountHasBeenSet = false;
88
89 Aws::String m_region;
90 bool m_regionHasBeenSet = false;
91
93 bool m_sourcesHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SecurityLake
98} // namespace Aws
AWS_SECURITYLAKE_API LogSource()
AWS_SECURITYLAKE_API LogSource(Aws::Utils::Json::JsonView jsonValue)
LogSource & WithSources(const Aws::Vector< LogSourceResource > &value)
Definition LogSource.h:79
LogSource & WithSources(Aws::Vector< LogSourceResource > &&value)
Definition LogSource.h:80
void SetAccount(const char *value)
Definition LogSource.h:51
void SetAccount(const Aws::String &value)
Definition LogSource.h:49
LogSource & WithAccount(const Aws::String &value)
Definition LogSource.h:52
LogSource & WithAccount(Aws::String &&value)
Definition LogSource.h:53
void SetAccount(Aws::String &&value)
Definition LogSource.h:50
const Aws::Vector< LogSourceResource > & GetSources() const
Definition LogSource.h:75
AWS_SECURITYLAKE_API LogSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSources(const Aws::Vector< LogSourceResource > &value)
Definition LogSource.h:77
void SetRegion(Aws::String &&value)
Definition LogSource.h:64
void SetRegion(const char *value)
Definition LogSource.h:65
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
LogSource & AddSources(const LogSourceResource &value)
Definition LogSource.h:81
LogSource & AddSources(LogSourceResource &&value)
Definition LogSource.h:82
LogSource & WithRegion(const Aws::String &value)
Definition LogSource.h:66
LogSource & WithRegion(Aws::String &&value)
Definition LogSource.h:67
const Aws::String & GetAccount() const
Definition LogSource.h:47
void SetRegion(const Aws::String &value)
Definition LogSource.h:63
LogSource & WithAccount(const char *value)
Definition LogSource.h:54
void SetSources(Aws::Vector< LogSourceResource > &&value)
Definition LogSource.h:78
const Aws::String & GetRegion() const
Definition LogSource.h:61
LogSource & WithRegion(const char *value)
Definition LogSource.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue