AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AwsLogSourceName& GetSourceName() const{ return m_sourceName; }
48 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
49 inline void SetSourceName(const AwsLogSourceName& value) { m_sourceNameHasBeenSet = true; m_sourceName = value; }
50 inline void SetSourceName(AwsLogSourceName&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::move(value); }
51 inline AwsLogSourceResource& WithSourceName(const AwsLogSourceName& value) { SetSourceName(value); return *this;}
52 inline AwsLogSourceResource& WithSourceName(AwsLogSourceName&& value) { SetSourceName(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
61 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
62 inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
63 inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
64 inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
65 inline AwsLogSourceResource& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
66 inline AwsLogSourceResource& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
67 inline AwsLogSourceResource& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
69 private:
70
71 AwsLogSourceName m_sourceName;
72 bool m_sourceNameHasBeenSet = false;
73
74 Aws::String m_sourceVersion;
75 bool m_sourceVersionHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace SecurityLake
80} // namespace Aws
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
AwsLogSourceResource & WithSourceVersion(const Aws::String &value)
void SetSourceName(const AwsLogSourceName &value)
AwsLogSourceResource & WithSourceName(const AwsLogSourceName &value)
AWS_SECURITYLAKE_API AwsLogSourceResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsLogSourceResource & WithSourceVersion(Aws::String &&value)
AWS_SECURITYLAKE_API AwsLogSourceResource(Aws::Utils::Json::JsonView jsonValue)
AwsLogSourceResource & WithSourceName(AwsLogSourceName &&value)
AwsLogSourceResource & WithSourceVersion(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue