AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
JobReport.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3control/model/JobReportFormat.h>
10#include <aws/s3control/model/JobReportScope.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3Control
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_S3CONTROL_API JobReport() = default;
37 AWS_S3CONTROL_API JobReport(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_S3CONTROL_API JobReport& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
50 inline const Aws::String& GetBucket() const { return m_bucket; }
51 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
52 template<typename BucketT = Aws::String>
53 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
54 template<typename BucketT = Aws::String>
55 JobReport& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
57
59
62 inline JobReportFormat GetFormat() const { return m_format; }
63 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
64 inline void SetFormat(JobReportFormat value) { m_formatHasBeenSet = true; m_format = value; }
65 inline JobReport& WithFormat(JobReportFormat value) { SetFormat(value); return *this;}
67
69
73 inline bool GetEnabled() const { return m_enabled; }
74 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
75 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
76 inline JobReport& WithEnabled(bool value) { SetEnabled(value); return *this;}
78
80
85 inline const Aws::String& GetPrefix() const { return m_prefix; }
86 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
87 template<typename PrefixT = Aws::String>
88 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet = true; m_prefix = std::forward<PrefixT>(value); }
89 template<typename PrefixT = Aws::String>
90 JobReport& WithPrefix(PrefixT&& value) { SetPrefix(std::forward<PrefixT>(value)); return *this;}
92
94
98 inline JobReportScope GetReportScope() const { return m_reportScope; }
99 inline bool ReportScopeHasBeenSet() const { return m_reportScopeHasBeenSet; }
100 inline void SetReportScope(JobReportScope value) { m_reportScopeHasBeenSet = true; m_reportScope = value; }
101 inline JobReport& WithReportScope(JobReportScope value) { SetReportScope(value); return *this;}
103
105
109 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
110 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
111 template<typename ExpectedBucketOwnerT = Aws::String>
112 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
113 template<typename ExpectedBucketOwnerT = Aws::String>
114 JobReport& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
116 private:
117
118 Aws::String m_bucket;
119 bool m_bucketHasBeenSet = false;
120
122 bool m_formatHasBeenSet = false;
123
124 bool m_enabled{false};
125 bool m_enabledHasBeenSet = false;
126
127 Aws::String m_prefix;
128 bool m_prefixHasBeenSet = false;
129
131 bool m_reportScopeHasBeenSet = false;
132
133 Aws::String m_expectedBucketOwner;
134 bool m_expectedBucketOwnerHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace S3Control
139} // namespace Aws
void SetBucket(BucketT &&value)
Definition JobReport.h:53
AWS_S3CONTROL_API JobReport & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetPrefix(PrefixT &&value)
Definition JobReport.h:88
JobReport & WithFormat(JobReportFormat value)
Definition JobReport.h:65
JobReport & WithPrefix(PrefixT &&value)
Definition JobReport.h:90
bool ExpectedBucketOwnerHasBeenSet() const
Definition JobReport.h:110
JobReportScope GetReportScope() const
Definition JobReport.h:98
JobReportFormat GetFormat() const
Definition JobReport.h:62
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
Definition JobReport.h:112
void SetFormat(JobReportFormat value)
Definition JobReport.h:64
JobReport & WithReportScope(JobReportScope value)
Definition JobReport.h:101
const Aws::String & GetBucket() const
Definition JobReport.h:50
const Aws::String & GetPrefix() const
Definition JobReport.h:85
const Aws::String & GetExpectedBucketOwner() const
Definition JobReport.h:109
JobReport & WithBucket(BucketT &&value)
Definition JobReport.h:55
void SetReportScope(JobReportScope value)
Definition JobReport.h:100
JobReport & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
Definition JobReport.h:114
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CONTROL_API JobReport()=default
JobReport & WithEnabled(bool value)
Definition JobReport.h:76
AWS_S3CONTROL_API JobReport(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String