AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BackfillError.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/BackfillErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/PartitionValueList.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
46 {
47 public:
48 AWS_GLUE_API BackfillError() = default;
52
53
55
59 inline BackfillErrorCode GetCode() const { return m_code; }
60 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
61 inline void SetCode(BackfillErrorCode value) { m_codeHasBeenSet = true; m_code = value; }
62 inline BackfillError& WithCode(BackfillErrorCode value) { SetCode(value); return *this;}
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) { m_partitionsHasBeenSet = true; m_partitions = std::forward<PartitionsT>(value); }
73 template<typename PartitionsT = Aws::Vector<PartitionValueList>>
74 BackfillError& WithPartitions(PartitionsT&& value) { SetPartitions(std::forward<PartitionsT>(value)); return *this;}
75 template<typename PartitionsT = PartitionValueList>
76 BackfillError& AddPartitions(PartitionsT&& value) { m_partitionsHasBeenSet = true; m_partitions.emplace_back(std::forward<PartitionsT>(value)); return *this; }
78 private:
79
81 bool m_codeHasBeenSet = false;
82
84 bool m_partitionsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Glue
89} // 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