AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ExecuteCommandLogConfiguration.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_ECS_API ExecuteCommandLogConfiguration() = default;
40
41
43
47 inline const Aws::String& GetCloudWatchLogGroupName() const { return m_cloudWatchLogGroupName; }
48 inline bool CloudWatchLogGroupNameHasBeenSet() const { return m_cloudWatchLogGroupNameHasBeenSet; }
49 template<typename CloudWatchLogGroupNameT = Aws::String>
50 void SetCloudWatchLogGroupName(CloudWatchLogGroupNameT&& value) { m_cloudWatchLogGroupNameHasBeenSet = true; m_cloudWatchLogGroupName = std::forward<CloudWatchLogGroupNameT>(value); }
51 template<typename CloudWatchLogGroupNameT = Aws::String>
52 ExecuteCommandLogConfiguration& WithCloudWatchLogGroupName(CloudWatchLogGroupNameT&& value) { SetCloudWatchLogGroupName(std::forward<CloudWatchLogGroupNameT>(value)); return *this;}
54
56
60 inline bool GetCloudWatchEncryptionEnabled() const { return m_cloudWatchEncryptionEnabled; }
61 inline bool CloudWatchEncryptionEnabledHasBeenSet() const { return m_cloudWatchEncryptionEnabledHasBeenSet; }
62 inline void SetCloudWatchEncryptionEnabled(bool value) { m_cloudWatchEncryptionEnabledHasBeenSet = true; m_cloudWatchEncryptionEnabled = value; }
65
67
71 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
72 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
73 template<typename S3BucketNameT = Aws::String>
74 void SetS3BucketName(S3BucketNameT&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::forward<S3BucketNameT>(value); }
75 template<typename S3BucketNameT = Aws::String>
76 ExecuteCommandLogConfiguration& WithS3BucketName(S3BucketNameT&& value) { SetS3BucketName(std::forward<S3BucketNameT>(value)); return *this;}
78
80
84 inline bool GetS3EncryptionEnabled() const { return m_s3EncryptionEnabled; }
85 inline bool S3EncryptionEnabledHasBeenSet() const { return m_s3EncryptionEnabledHasBeenSet; }
86 inline void SetS3EncryptionEnabled(bool value) { m_s3EncryptionEnabledHasBeenSet = true; m_s3EncryptionEnabled = value; }
89
91
94 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
95 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
96 template<typename S3KeyPrefixT = Aws::String>
97 void SetS3KeyPrefix(S3KeyPrefixT&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value); }
98 template<typename S3KeyPrefixT = Aws::String>
99 ExecuteCommandLogConfiguration& WithS3KeyPrefix(S3KeyPrefixT&& value) { SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value)); return *this;}
101 private:
102
103 Aws::String m_cloudWatchLogGroupName;
104 bool m_cloudWatchLogGroupNameHasBeenSet = false;
105
106 bool m_cloudWatchEncryptionEnabled{false};
107 bool m_cloudWatchEncryptionEnabledHasBeenSet = false;
108
109 Aws::String m_s3BucketName;
110 bool m_s3BucketNameHasBeenSet = false;
111
112 bool m_s3EncryptionEnabled{false};
113 bool m_s3EncryptionEnabledHasBeenSet = false;
114
115 Aws::String m_s3KeyPrefix;
116 bool m_s3KeyPrefixHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ECS
121} // 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