AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
JobReport.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3Control_EXPORTS.h>
9#include <aws/s3control/model/JobReportFormat.h>
10#include <aws/s3control/model/JobReportScope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3Control {
21namespace Model {
22
29class JobReport {
30 public:
31 AWS_S3CONTROL_API JobReport() = default;
32 AWS_S3CONTROL_API JobReport(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_S3CONTROL_API JobReport& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
44 inline const Aws::String& GetBucket() const { return m_bucket; }
45 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
46 template <typename BucketT = Aws::String>
47 void SetBucket(BucketT&& value) {
48 m_bucketHasBeenSet = true;
49 m_bucket = std::forward<BucketT>(value);
50 }
51 template <typename BucketT = Aws::String>
52 JobReport& WithBucket(BucketT&& value) {
53 SetBucket(std::forward<BucketT>(value));
54 return *this;
55 }
57
59
62 inline JobReportFormat GetFormat() const { return m_format; }
63 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
64 inline void SetFormat(JobReportFormat value) {
65 m_formatHasBeenSet = true;
66 m_format = value;
67 }
69 SetFormat(value);
70 return *this;
71 }
73
75
79 inline bool GetEnabled() const { return m_enabled; }
80 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
81 inline void SetEnabled(bool value) {
82 m_enabledHasBeenSet = true;
83 m_enabled = value;
84 }
85 inline JobReport& WithEnabled(bool value) {
86 SetEnabled(value);
87 return *this;
88 }
90
92
97 inline const Aws::String& GetPrefix() const { return m_prefix; }
98 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
99 template <typename PrefixT = Aws::String>
100 void SetPrefix(PrefixT&& value) {
101 m_prefixHasBeenSet = true;
102 m_prefix = std::forward<PrefixT>(value);
103 }
104 template <typename PrefixT = Aws::String>
105 JobReport& WithPrefix(PrefixT&& value) {
106 SetPrefix(std::forward<PrefixT>(value));
107 return *this;
108 }
110
112
116 inline JobReportScope GetReportScope() const { return m_reportScope; }
117 inline bool ReportScopeHasBeenSet() const { return m_reportScopeHasBeenSet; }
118 inline void SetReportScope(JobReportScope value) {
119 m_reportScopeHasBeenSet = true;
120 m_reportScope = value;
121 }
123 SetReportScope(value);
124 return *this;
125 }
127
129
133 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
134 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
135 template <typename ExpectedBucketOwnerT = Aws::String>
136 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
137 m_expectedBucketOwnerHasBeenSet = true;
138 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
139 }
140 template <typename ExpectedBucketOwnerT = Aws::String>
141 JobReport& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
142 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_bucket;
148
150
151 bool m_enabled{false};
152
153 Aws::String m_prefix;
154
156
157 Aws::String m_expectedBucketOwner;
158 bool m_bucketHasBeenSet = false;
159 bool m_formatHasBeenSet = false;
160 bool m_enabledHasBeenSet = false;
161 bool m_prefixHasBeenSet = false;
162 bool m_reportScopeHasBeenSet = false;
163 bool m_expectedBucketOwnerHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace S3Control
168} // namespace Aws
void SetBucket(BucketT &&value)
Definition JobReport.h:47
AWS_S3CONTROL_API JobReport & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPrefix(PrefixT &&value)
Definition JobReport.h:100
JobReport & WithFormat(JobReportFormat value)
Definition JobReport.h:68
JobReport & WithPrefix(PrefixT &&value)
Definition JobReport.h:105
bool ExpectedBucketOwnerHasBeenSet() const
Definition JobReport.h:134
JobReportScope GetReportScope() const
Definition JobReport.h:116
JobReportFormat GetFormat() const
Definition JobReport.h:62
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
Definition JobReport.h:136
void SetFormat(JobReportFormat value)
Definition JobReport.h:64
JobReport & WithReportScope(JobReportScope value)
Definition JobReport.h:122
const Aws::String & GetBucket() const
Definition JobReport.h:44
const Aws::String & GetPrefix() const
Definition JobReport.h:97
const Aws::String & GetExpectedBucketOwner() const
Definition JobReport.h:133
JobReport & WithBucket(BucketT &&value)
Definition JobReport.h:52
void SetReportScope(JobReportScope value)
Definition JobReport.h:118
JobReport & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
Definition JobReport.h:141
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CONTROL_API JobReport()=default
JobReport & WithEnabled(bool value)
Definition JobReport.h:85
AWS_S3CONTROL_API JobReport(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String