AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LoggingEnabled.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3-crt/model/TargetObjectKeyFormat.h>
11#include <aws/s3-crt/model/TargetGrant.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace S3Crt
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_S3CRT_API LoggingEnabled();
41 AWS_S3CRT_API LoggingEnabled(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_S3CRT_API LoggingEnabled& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
56 inline const Aws::String& GetTargetBucket() const{ return m_targetBucket; }
57 inline bool TargetBucketHasBeenSet() const { return m_targetBucketHasBeenSet; }
58 inline void SetTargetBucket(const Aws::String& value) { m_targetBucketHasBeenSet = true; m_targetBucket = value; }
59 inline void SetTargetBucket(Aws::String&& value) { m_targetBucketHasBeenSet = true; m_targetBucket = std::move(value); }
60 inline void SetTargetBucket(const char* value) { m_targetBucketHasBeenSet = true; m_targetBucket.assign(value); }
61 inline LoggingEnabled& WithTargetBucket(const Aws::String& value) { SetTargetBucket(value); return *this;}
62 inline LoggingEnabled& WithTargetBucket(Aws::String&& value) { SetTargetBucket(std::move(value)); return *this;}
63 inline LoggingEnabled& WithTargetBucket(const char* value) { SetTargetBucket(value); return *this;}
65
67
74 inline const Aws::Vector<TargetGrant>& GetTargetGrants() const{ return m_targetGrants; }
75 inline bool TargetGrantsHasBeenSet() const { return m_targetGrantsHasBeenSet; }
76 inline void SetTargetGrants(const Aws::Vector<TargetGrant>& value) { m_targetGrantsHasBeenSet = true; m_targetGrants = value; }
77 inline void SetTargetGrants(Aws::Vector<TargetGrant>&& value) { m_targetGrantsHasBeenSet = true; m_targetGrants = std::move(value); }
78 inline LoggingEnabled& WithTargetGrants(const Aws::Vector<TargetGrant>& value) { SetTargetGrants(value); return *this;}
79 inline LoggingEnabled& WithTargetGrants(Aws::Vector<TargetGrant>&& value) { SetTargetGrants(std::move(value)); return *this;}
80 inline LoggingEnabled& AddTargetGrants(const TargetGrant& value) { m_targetGrantsHasBeenSet = true; m_targetGrants.push_back(value); return *this; }
81 inline LoggingEnabled& AddTargetGrants(TargetGrant&& value) { m_targetGrantsHasBeenSet = true; m_targetGrants.push_back(std::move(value)); return *this; }
83
85
90 inline const Aws::String& GetTargetPrefix() const{ return m_targetPrefix; }
91 inline bool TargetPrefixHasBeenSet() const { return m_targetPrefixHasBeenSet; }
92 inline void SetTargetPrefix(const Aws::String& value) { m_targetPrefixHasBeenSet = true; m_targetPrefix = value; }
93 inline void SetTargetPrefix(Aws::String&& value) { m_targetPrefixHasBeenSet = true; m_targetPrefix = std::move(value); }
94 inline void SetTargetPrefix(const char* value) { m_targetPrefixHasBeenSet = true; m_targetPrefix.assign(value); }
95 inline LoggingEnabled& WithTargetPrefix(const Aws::String& value) { SetTargetPrefix(value); return *this;}
96 inline LoggingEnabled& WithTargetPrefix(Aws::String&& value) { SetTargetPrefix(std::move(value)); return *this;}
97 inline LoggingEnabled& WithTargetPrefix(const char* value) { SetTargetPrefix(value); return *this;}
99
101
104 inline const TargetObjectKeyFormat& GetTargetObjectKeyFormat() const{ return m_targetObjectKeyFormat; }
105 inline bool TargetObjectKeyFormatHasBeenSet() const { return m_targetObjectKeyFormatHasBeenSet; }
106 inline void SetTargetObjectKeyFormat(const TargetObjectKeyFormat& value) { m_targetObjectKeyFormatHasBeenSet = true; m_targetObjectKeyFormat = value; }
107 inline void SetTargetObjectKeyFormat(TargetObjectKeyFormat&& value) { m_targetObjectKeyFormatHasBeenSet = true; m_targetObjectKeyFormat = std::move(value); }
111 private:
112
113 Aws::String m_targetBucket;
114 bool m_targetBucketHasBeenSet = false;
115
116 Aws::Vector<TargetGrant> m_targetGrants;
117 bool m_targetGrantsHasBeenSet = false;
118
119 Aws::String m_targetPrefix;
120 bool m_targetPrefixHasBeenSet = false;
121
122 TargetObjectKeyFormat m_targetObjectKeyFormat;
123 bool m_targetObjectKeyFormatHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace S3Crt
128} // namespace Aws
void SetTargetBucket(const char *value)
void SetTargetPrefix(const Aws::String &value)
void SetTargetPrefix(const char *value)
LoggingEnabled & AddTargetGrants(TargetGrant &&value)
void SetTargetObjectKeyFormat(const TargetObjectKeyFormat &value)
void SetTargetPrefix(Aws::String &&value)
LoggingEnabled & WithTargetPrefix(const Aws::String &value)
void SetTargetGrants(const Aws::Vector< TargetGrant > &value)
void SetTargetGrants(Aws::Vector< TargetGrant > &&value)
const TargetObjectKeyFormat & GetTargetObjectKeyFormat() const
LoggingEnabled & AddTargetGrants(const TargetGrant &value)
void SetTargetBucket(Aws::String &&value)
LoggingEnabled & WithTargetPrefix(Aws::String &&value)
const Aws::String & GetTargetBucket() const
LoggingEnabled & WithTargetGrants(Aws::Vector< TargetGrant > &&value)
void SetTargetBucket(const Aws::String &value)
AWS_S3CRT_API LoggingEnabled(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTargetObjectKeyFormat(TargetObjectKeyFormat &&value)
LoggingEnabled & WithTargetGrants(const Aws::Vector< TargetGrant > &value)
LoggingEnabled & WithTargetBucket(Aws::String &&value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
LoggingEnabled & WithTargetObjectKeyFormat(const TargetObjectKeyFormat &value)
LoggingEnabled & WithTargetObjectKeyFormat(TargetObjectKeyFormat &&value)
LoggingEnabled & WithTargetBucket(const char *value)
LoggingEnabled & WithTargetBucket(const Aws::String &value)
const Aws::Vector< TargetGrant > & GetTargetGrants() const
AWS_S3CRT_API LoggingEnabled & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LoggingEnabled & WithTargetPrefix(const char *value)
const Aws::String & GetTargetPrefix() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector