AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
AwsLogSourceResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securitylake/SecurityLake_EXPORTS.h>
9#include <aws/securitylake/model/AwsLogSourceName.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityLake {
21namespace Model {
22
30 public:
31 AWS_SECURITYLAKE_API AwsLogSourceResource() = default;
32 AWS_SECURITYLAKE_API AwsLogSourceResource(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline AwsLogSourceName GetSourceName() const { return m_sourceName; }
42 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
43 inline void SetSourceName(AwsLogSourceName value) {
44 m_sourceNameHasBeenSet = true;
45 m_sourceName = value;
46 }
48 SetSourceName(value);
49 return *this;
50 }
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) {
62 m_sourceVersionHasBeenSet = true;
63 m_sourceVersion = std::forward<SourceVersionT>(value);
64 }
65 template <typename SourceVersionT = Aws::String>
66 AwsLogSourceResource& WithSourceVersion(SourceVersionT&& value) {
67 SetSourceVersion(std::forward<SourceVersionT>(value));
68 return *this;
69 }
71 private:
73
74 Aws::String m_sourceVersion;
75 bool m_sourceNameHasBeenSet = false;
76 bool m_sourceVersionHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace SecurityLake
81} // 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