AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
S3LogConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
9#include <aws/workspaces-web/model/FolderStructure.h>
10#include <aws/workspaces-web/model/LogFileFormat.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WorkSpacesWeb {
22namespace Model {
23
30 public:
31 AWS_WORKSPACESWEB_API S3LogConfiguration() = default;
32 AWS_WORKSPACESWEB_API S3LogConfiguration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WORKSPACESWEB_API S3LogConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBucket() const { return m_bucket; }
41 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
42 template <typename BucketT = Aws::String>
43 void SetBucket(BucketT&& value) {
44 m_bucketHasBeenSet = true;
45 m_bucket = std::forward<BucketT>(value);
46 }
47 template <typename BucketT = Aws::String>
48 S3LogConfiguration& WithBucket(BucketT&& value) {
49 SetBucket(std::forward<BucketT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetKeyPrefix() const { return m_keyPrefix; }
59 inline bool KeyPrefixHasBeenSet() const { return m_keyPrefixHasBeenSet; }
60 template <typename KeyPrefixT = Aws::String>
61 void SetKeyPrefix(KeyPrefixT&& value) {
62 m_keyPrefixHasBeenSet = true;
63 m_keyPrefix = std::forward<KeyPrefixT>(value);
64 }
65 template <typename KeyPrefixT = Aws::String>
66 S3LogConfiguration& WithKeyPrefix(KeyPrefixT&& value) {
67 SetKeyPrefix(std::forward<KeyPrefixT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetBucketOwner() const { return m_bucketOwner; }
78 inline bool BucketOwnerHasBeenSet() const { return m_bucketOwnerHasBeenSet; }
79 template <typename BucketOwnerT = Aws::String>
80 void SetBucketOwner(BucketOwnerT&& value) {
81 m_bucketOwnerHasBeenSet = true;
82 m_bucketOwner = std::forward<BucketOwnerT>(value);
83 }
84 template <typename BucketOwnerT = Aws::String>
85 S3LogConfiguration& WithBucketOwner(BucketOwnerT&& value) {
86 SetBucketOwner(std::forward<BucketOwnerT>(value));
87 return *this;
88 }
90
92
95 inline LogFileFormat GetLogFileFormat() const { return m_logFileFormat; }
96 inline bool LogFileFormatHasBeenSet() const { return m_logFileFormatHasBeenSet; }
97 inline void SetLogFileFormat(LogFileFormat value) {
98 m_logFileFormatHasBeenSet = true;
99 m_logFileFormat = value;
100 }
102 SetLogFileFormat(value);
103 return *this;
104 }
106
108
112 inline FolderStructure GetFolderStructure() const { return m_folderStructure; }
113 inline bool FolderStructureHasBeenSet() const { return m_folderStructureHasBeenSet; }
115 m_folderStructureHasBeenSet = true;
116 m_folderStructure = value;
117 }
119 SetFolderStructure(value);
120 return *this;
121 }
123 private:
124 Aws::String m_bucket;
125
126 Aws::String m_keyPrefix;
127
128 Aws::String m_bucketOwner;
129
130 LogFileFormat m_logFileFormat{LogFileFormat::NOT_SET};
131
132 FolderStructure m_folderStructure{FolderStructure::NOT_SET};
133 bool m_bucketHasBeenSet = false;
134 bool m_keyPrefixHasBeenSet = false;
135 bool m_bucketOwnerHasBeenSet = false;
136 bool m_logFileFormatHasBeenSet = false;
137 bool m_folderStructureHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace WorkSpacesWeb
142} // namespace Aws
AWS_WORKSPACESWEB_API S3LogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
S3LogConfiguration & WithBucket(BucketT &&value)
S3LogConfiguration & WithFolderStructure(FolderStructure value)
S3LogConfiguration & WithKeyPrefix(KeyPrefixT &&value)
S3LogConfiguration & WithBucketOwner(BucketOwnerT &&value)
S3LogConfiguration & WithLogFileFormat(LogFileFormat value)
AWS_WORKSPACESWEB_API S3LogConfiguration()=default
AWS_WORKSPACESWEB_API S3LogConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue