AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
SyslogConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/SyslogSourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
30 public:
31 AWS_CLOUDWATCHLOGS_API SyslogConfiguration() = default;
32 AWS_CLOUDWATCHLOGS_API SyslogConfiguration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API SyslogConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetLogGroupArn() const { return m_logGroupArn; }
41 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
42 template <typename LogGroupArnT = Aws::String>
43 void SetLogGroupArn(LogGroupArnT&& value) {
44 m_logGroupArnHasBeenSet = true;
45 m_logGroupArn = std::forward<LogGroupArnT>(value);
46 }
47 template <typename LogGroupArnT = Aws::String>
48 SyslogConfiguration& WithLogGroupArn(LogGroupArnT&& value) {
49 SetLogGroupArn(std::forward<LogGroupArnT>(value));
50 return *this;
51 }
53
55
58 inline SyslogSourceType GetSourceType() const { return m_sourceType; }
59 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
60 inline void SetSourceType(SyslogSourceType value) {
61 m_sourceTypeHasBeenSet = true;
62 m_sourceType = value;
63 }
65 SetSourceType(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetVpcEndpointId() const { return m_vpcEndpointId; }
75 inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
76 template <typename VpcEndpointIdT = Aws::String>
77 void SetVpcEndpointId(VpcEndpointIdT&& value) {
78 m_vpcEndpointIdHasBeenSet = true;
79 m_vpcEndpointId = std::forward<VpcEndpointIdT>(value);
80 }
81 template <typename VpcEndpointIdT = Aws::String>
82 SyslogConfiguration& WithVpcEndpointId(VpcEndpointIdT&& value) {
83 SetVpcEndpointId(std::forward<VpcEndpointIdT>(value));
84 return *this;
85 }
87
89
93 inline long long GetCreatedAt() const { return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 inline void SetCreatedAt(long long value) {
96 m_createdAtHasBeenSet = true;
97 m_createdAt = value;
98 }
99 inline SyslogConfiguration& WithCreatedAt(long long value) {
100 SetCreatedAt(value);
101 return *this;
102 }
104 private:
105 Aws::String m_logGroupArn;
106
108
109 Aws::String m_vpcEndpointId;
110
111 long long m_createdAt{0};
112 bool m_logGroupArnHasBeenSet = false;
113 bool m_sourceTypeHasBeenSet = false;
114 bool m_vpcEndpointIdHasBeenSet = false;
115 bool m_createdAtHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace CloudWatchLogs
120} // namespace Aws
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
SyslogConfiguration & WithCreatedAt(long long value)
SyslogConfiguration & WithVpcEndpointId(VpcEndpointIdT &&value)
AWS_CLOUDWATCHLOGS_API SyslogConfiguration()=default
AWS_CLOUDWATCHLOGS_API SyslogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API SyslogConfiguration(Aws::Utils::Json::JsonView jsonValue)
SyslogConfiguration & WithLogGroupArn(LogGroupArnT &&value)
SyslogConfiguration & WithSourceType(SyslogSourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue