AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsLogSourceResource.h
1
6#pragma once
7#include <aws/securitylake/SecurityLake_EXPORTS.h>
8#include <aws/securitylake/model/AwsLogSourceName.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityLake
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYLAKE_API AwsLogSourceResource() = default;
37 AWS_SECURITYLAKE_API AwsLogSourceResource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline AwsLogSourceName GetSourceName() const { return m_sourceName; }
48 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
49 inline void SetSourceName(AwsLogSourceName value) { m_sourceNameHasBeenSet = true; m_sourceName = value; }
50 inline AwsLogSourceResource& WithSourceName(AwsLogSourceName value) { SetSourceName(value); return *this;}
52
54
58 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
59 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
60 template<typename SourceVersionT = Aws::String>
61 void SetSourceVersion(SourceVersionT&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::forward<SourceVersionT>(value); }
62 template<typename SourceVersionT = Aws::String>
63 AwsLogSourceResource& WithSourceVersion(SourceVersionT&& value) { SetSourceVersion(std::forward<SourceVersionT>(value)); return *this;}
65 private:
66
68 bool m_sourceNameHasBeenSet = false;
69
70 Aws::String m_sourceVersion;
71 bool m_sourceVersionHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SecurityLake
76} // namespace Aws
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYLAKE_API AwsLogSourceResource()=default
AWS_SECURITYLAKE_API AwsLogSourceResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsLogSourceResource & WithSourceName(AwsLogSourceName value)
AwsLogSourceResource & WithSourceVersion(SourceVersionT &&value)
AWS_SECURITYLAKE_API AwsLogSourceResource(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue