AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
JobManifestSpec.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/s3control/S3Control_EXPORTS.h>
9#include <aws/s3control/model/JobManifestFieldName.h>
10#include <aws/s3control/model/JobManifestFormat.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
31 public:
32 AWS_S3CONTROL_API JobManifestSpec() = default;
33 AWS_S3CONTROL_API JobManifestSpec(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_S3CONTROL_API JobManifestSpec& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
37
39
42 inline JobManifestFormat GetFormat() const { return m_format; }
43 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
44 inline void SetFormat(JobManifestFormat value) {
45 m_formatHasBeenSet = true;
46 m_format = value;
47 }
49 SetFormat(value);
50 return *this;
51 }
53
55
60 inline const Aws::Vector<JobManifestFieldName>& GetFields() const { return m_fields; }
61 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
62 template <typename FieldsT = Aws::Vector<JobManifestFieldName>>
63 void SetFields(FieldsT&& value) {
64 m_fieldsHasBeenSet = true;
65 m_fields = std::forward<FieldsT>(value);
66 }
67 template <typename FieldsT = Aws::Vector<JobManifestFieldName>>
68 JobManifestSpec& WithFields(FieldsT&& value) {
69 SetFields(std::forward<FieldsT>(value));
70 return *this;
71 }
73 m_fieldsHasBeenSet = true;
74 m_fields.push_back(value);
75 return *this;
76 }
78 private:
80
82 bool m_formatHasBeenSet = false;
83 bool m_fieldsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace S3Control
88} // namespace Aws
JobManifestSpec & AddFields(JobManifestFieldName value)
AWS_S3CONTROL_API JobManifestSpec(const Aws::Utils::Xml::XmlNode &xmlNode)
JobManifestFormat GetFormat() const
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Vector< JobManifestFieldName > & GetFields() const
AWS_S3CONTROL_API JobManifestSpec & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API JobManifestSpec()=default
void SetFormat(JobManifestFormat value)
JobManifestSpec & WithFormat(JobManifestFormat value)
JobManifestSpec & WithFields(FieldsT &&value)
std::vector< T, Aws::Allocator< T > > Vector