AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 private:
104
105 Aws::String m_bucket;
106 bool m_bucketHasBeenSet = false;
107
109 bool m_formatHasBeenSet = false;
110
111 bool m_enabled{false};
112 bool m_enabledHasBeenSet = false;
113
114 Aws::String m_prefix;
115 bool m_prefixHasBeenSet = false;
116
118 bool m_reportScopeHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace S3Control
123} // 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
JobReportScope GetReportScope() const
Definition JobReport.h:98
JobReportFormat GetFormat() const
Definition JobReport.h:62
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
JobReport & WithBucket(BucketT &&value)
Definition JobReport.h:55
void SetReportScope(JobReportScope value)
Definition JobReport.h:100
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