AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ExecuteCommandLogConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
30 public:
31 AWS_ECS_API ExecuteCommandLogConfiguration() = default;
35
37
41 inline const Aws::String& GetCloudWatchLogGroupName() const { return m_cloudWatchLogGroupName; }
42 inline bool CloudWatchLogGroupNameHasBeenSet() const { return m_cloudWatchLogGroupNameHasBeenSet; }
43 template <typename CloudWatchLogGroupNameT = Aws::String>
44 void SetCloudWatchLogGroupName(CloudWatchLogGroupNameT&& value) {
45 m_cloudWatchLogGroupNameHasBeenSet = true;
46 m_cloudWatchLogGroupName = std::forward<CloudWatchLogGroupNameT>(value);
47 }
48 template <typename CloudWatchLogGroupNameT = Aws::String>
50 SetCloudWatchLogGroupName(std::forward<CloudWatchLogGroupNameT>(value));
51 return *this;
52 }
54
56
60 inline bool GetCloudWatchEncryptionEnabled() const { return m_cloudWatchEncryptionEnabled; }
61 inline bool CloudWatchEncryptionEnabledHasBeenSet() const { return m_cloudWatchEncryptionEnabledHasBeenSet; }
62 inline void SetCloudWatchEncryptionEnabled(bool value) {
63 m_cloudWatchEncryptionEnabledHasBeenSet = true;
64 m_cloudWatchEncryptionEnabled = value;
65 }
68 return *this;
69 }
71
73
77 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
78 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
79 template <typename S3BucketNameT = Aws::String>
80 void SetS3BucketName(S3BucketNameT&& value) {
81 m_s3BucketNameHasBeenSet = true;
82 m_s3BucketName = std::forward<S3BucketNameT>(value);
83 }
84 template <typename S3BucketNameT = Aws::String>
86 SetS3BucketName(std::forward<S3BucketNameT>(value));
87 return *this;
88 }
90
92
96 inline bool GetS3EncryptionEnabled() const { return m_s3EncryptionEnabled; }
97 inline bool S3EncryptionEnabledHasBeenSet() const { return m_s3EncryptionEnabledHasBeenSet; }
98 inline void SetS3EncryptionEnabled(bool value) {
99 m_s3EncryptionEnabledHasBeenSet = true;
100 m_s3EncryptionEnabled = value;
101 }
104 return *this;
105 }
107
109
112 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
113 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
114 template <typename S3KeyPrefixT = Aws::String>
115 void SetS3KeyPrefix(S3KeyPrefixT&& value) {
116 m_s3KeyPrefixHasBeenSet = true;
117 m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value);
118 }
119 template <typename S3KeyPrefixT = Aws::String>
121 SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_cloudWatchLogGroupName;
127
128 bool m_cloudWatchEncryptionEnabled{false};
129
130 Aws::String m_s3BucketName;
131
132 bool m_s3EncryptionEnabled{false};
133
134 Aws::String m_s3KeyPrefix;
135 bool m_cloudWatchLogGroupNameHasBeenSet = false;
136 bool m_cloudWatchEncryptionEnabledHasBeenSet = false;
137 bool m_s3BucketNameHasBeenSet = false;
138 bool m_s3EncryptionEnabledHasBeenSet = false;
139 bool m_s3KeyPrefixHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace ECS
144} // namespace Aws
ExecuteCommandLogConfiguration & WithS3EncryptionEnabled(bool value)
ExecuteCommandLogConfiguration & WithCloudWatchLogGroupName(CloudWatchLogGroupNameT &&value)
void SetCloudWatchLogGroupName(CloudWatchLogGroupNameT &&value)
ExecuteCommandLogConfiguration & WithS3KeyPrefix(S3KeyPrefixT &&value)
ExecuteCommandLogConfiguration & WithS3BucketName(S3BucketNameT &&value)
AWS_ECS_API ExecuteCommandLogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ExecuteCommandLogConfiguration(Aws::Utils::Json::JsonView jsonValue)
ExecuteCommandLogConfiguration & WithCloudWatchEncryptionEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue