AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
BackfillError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/BackfillErrorCode.h>
10#include <aws/glue/model/PartitionValueList.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
42 public:
43 AWS_GLUE_API BackfillError() = default;
47
49
53 inline BackfillErrorCode GetCode() const { return m_code; }
54 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
55 inline void SetCode(BackfillErrorCode value) {
56 m_codeHasBeenSet = true;
57 m_code = value;
58 }
60 SetCode(value);
61 return *this;
62 }
64
66
69 inline const Aws::Vector<PartitionValueList>& GetPartitions() const { return m_partitions; }
70 inline bool PartitionsHasBeenSet() const { return m_partitionsHasBeenSet; }
71 template <typename PartitionsT = Aws::Vector<PartitionValueList>>
72 void SetPartitions(PartitionsT&& value) {
73 m_partitionsHasBeenSet = true;
74 m_partitions = std::forward<PartitionsT>(value);
75 }
76 template <typename PartitionsT = Aws::Vector<PartitionValueList>>
77 BackfillError& WithPartitions(PartitionsT&& value) {
78 SetPartitions(std::forward<PartitionsT>(value));
79 return *this;
80 }
81 template <typename PartitionsT = PartitionValueList>
82 BackfillError& AddPartitions(PartitionsT&& value) {
83 m_partitionsHasBeenSet = true;
84 m_partitions.emplace_back(std::forward<PartitionsT>(value));
85 return *this;
86 }
88 private:
90
92 bool m_codeHasBeenSet = false;
93 bool m_partitionsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Glue
98} // namespace Aws
AWS_GLUE_API BackfillError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API BackfillError()=default
void SetPartitions(PartitionsT &&value)
const Aws::Vector< PartitionValueList > & GetPartitions() const
BackfillError & WithCode(BackfillErrorCode value)
BackfillError & AddPartitions(PartitionsT &&value)
BackfillError & WithPartitions(PartitionsT &&value)
BackfillErrorCode GetCode() const
void SetCode(BackfillErrorCode value)
AWS_GLUE_API BackfillError(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue