AWS SDK for C++

AWS SDK for C++ Version 1.11.869

Loading...
Searching...
No Matches
LoggingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace resiliencehubv2 {
20namespace Model {
21
29 public:
30 AWS_RESILIENCEHUBV2_API LoggingConfiguration() = default;
31 AWS_RESILIENCEHUBV2_API LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RESILIENCEHUBV2_API LoggingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
40 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
41 template <typename S3BucketNameT = Aws::String>
42 void SetS3BucketName(S3BucketNameT&& value) {
43 m_s3BucketNameHasBeenSet = true;
44 m_s3BucketName = std::forward<S3BucketNameT>(value);
45 }
46 template <typename S3BucketNameT = Aws::String>
47 LoggingConfiguration& WithS3BucketName(S3BucketNameT&& value) {
48 SetS3BucketName(std::forward<S3BucketNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCloudWatchLogGroupArn() const { return m_cloudWatchLogGroupArn; }
58 inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
59 template <typename CloudWatchLogGroupArnT = Aws::String>
60 void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) {
61 m_cloudWatchLogGroupArnHasBeenSet = true;
62 m_cloudWatchLogGroupArn = std::forward<CloudWatchLogGroupArnT>(value);
63 }
64 template <typename CloudWatchLogGroupArnT = Aws::String>
65 LoggingConfiguration& WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) {
66 SetCloudWatchLogGroupArn(std::forward<CloudWatchLogGroupArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetLogSchemaVersion() const { return m_logSchemaVersion; }
76 inline bool LogSchemaVersionHasBeenSet() const { return m_logSchemaVersionHasBeenSet; }
77 template <typename LogSchemaVersionT = Aws::String>
78 void SetLogSchemaVersion(LogSchemaVersionT&& value) {
79 m_logSchemaVersionHasBeenSet = true;
80 m_logSchemaVersion = std::forward<LogSchemaVersionT>(value);
81 }
82 template <typename LogSchemaVersionT = Aws::String>
83 LoggingConfiguration& WithLogSchemaVersion(LogSchemaVersionT&& value) {
84 SetLogSchemaVersion(std::forward<LogSchemaVersionT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_s3BucketName;
90
91 Aws::String m_cloudWatchLogGroupArn;
92
93 Aws::String m_logSchemaVersion;
94 bool m_s3BucketNameHasBeenSet = false;
95 bool m_cloudWatchLogGroupArnHasBeenSet = false;
96 bool m_logSchemaVersionHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace resiliencehubv2
101} // namespace Aws
LoggingConfiguration & WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
AWS_RESILIENCEHUBV2_API LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
LoggingConfiguration & WithLogSchemaVersion(LogSchemaVersionT &&value)
AWS_RESILIENCEHUBV2_API LoggingConfiguration()=default
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
AWS_RESILIENCEHUBV2_API LoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LoggingConfiguration & WithS3BucketName(S3BucketNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue