AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
52
53
55
59 inline const BackfillErrorCode& GetCode() const{ return m_code; }
60 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
61 inline void SetCode(const BackfillErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
62 inline void SetCode(BackfillErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
63 inline BackfillError& WithCode(const BackfillErrorCode& value) { SetCode(value); return *this;}
64 inline BackfillError& WithCode(BackfillErrorCode&& value) { SetCode(std::move(value)); return *this;}
66
68
71 inline const Aws::Vector<PartitionValueList>& GetPartitions() const{ return m_partitions; }
72 inline bool PartitionsHasBeenSet() const { return m_partitionsHasBeenSet; }
73 inline void SetPartitions(const Aws::Vector<PartitionValueList>& value) { m_partitionsHasBeenSet = true; m_partitions = value; }
74 inline void SetPartitions(Aws::Vector<PartitionValueList>&& value) { m_partitionsHasBeenSet = true; m_partitions = std::move(value); }
75 inline BackfillError& WithPartitions(const Aws::Vector<PartitionValueList>& value) { SetPartitions(value); return *this;}
76 inline BackfillError& WithPartitions(Aws::Vector<PartitionValueList>&& value) { SetPartitions(std::move(value)); return *this;}
77 inline BackfillError& AddPartitions(const PartitionValueList& value) { m_partitionsHasBeenSet = true; m_partitions.push_back(value); return *this; }
78 inline BackfillError& AddPartitions(PartitionValueList&& value) { m_partitionsHasBeenSet = true; m_partitions.push_back(std::move(value)); return *this; }
80 private:
81
82 BackfillErrorCode m_code;
83 bool m_codeHasBeenSet = false;
84
86 bool m_partitionsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Glue
91} // namespace Aws
BackfillError & WithPartitions(Aws::Vector< PartitionValueList > &&value)
void SetPartitions(Aws::Vector< PartitionValueList > &&value)
void SetCode(BackfillErrorCode &&value)
AWS_GLUE_API BackfillError & operator=(Aws::Utils::Json::JsonView jsonValue)
BackfillError & WithCode(const BackfillErrorCode &value)
BackfillError & AddPartitions(const PartitionValueList &value)
const Aws::Vector< PartitionValueList > & GetPartitions() const
void SetPartitions(const Aws::Vector< PartitionValueList > &value)
void SetCode(const BackfillErrorCode &value)
BackfillError & WithPartitions(const Aws::Vector< PartitionValueList > &value)
const BackfillErrorCode & GetCode() const
BackfillError & WithCode(BackfillErrorCode &&value)
AWS_GLUE_API BackfillError(Aws::Utils::Json::JsonView jsonValue)
BackfillError & AddPartitions(PartitionValueList &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue