AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PartitionError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/ErrorDetail.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
30 public:
31 AWS_GLUE_API PartitionError() = default;
35
37
40 inline const Aws::Vector<Aws::String>& GetPartitionValues() const { return m_partitionValues; }
41 inline bool PartitionValuesHasBeenSet() const { return m_partitionValuesHasBeenSet; }
42 template <typename PartitionValuesT = Aws::Vector<Aws::String>>
43 void SetPartitionValues(PartitionValuesT&& value) {
44 m_partitionValuesHasBeenSet = true;
45 m_partitionValues = std::forward<PartitionValuesT>(value);
46 }
47 template <typename PartitionValuesT = Aws::Vector<Aws::String>>
48 PartitionError& WithPartitionValues(PartitionValuesT&& value) {
49 SetPartitionValues(std::forward<PartitionValuesT>(value));
50 return *this;
51 }
52 template <typename PartitionValuesT = Aws::String>
53 PartitionError& AddPartitionValues(PartitionValuesT&& value) {
54 m_partitionValuesHasBeenSet = true;
55 m_partitionValues.emplace_back(std::forward<PartitionValuesT>(value));
56 return *this;
57 }
59
61
64 inline const ErrorDetail& GetErrorDetail() const { return m_errorDetail; }
65 inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
66 template <typename ErrorDetailT = ErrorDetail>
67 void SetErrorDetail(ErrorDetailT&& value) {
68 m_errorDetailHasBeenSet = true;
69 m_errorDetail = std::forward<ErrorDetailT>(value);
70 }
71 template <typename ErrorDetailT = ErrorDetail>
72 PartitionError& WithErrorDetail(ErrorDetailT&& value) {
73 SetErrorDetail(std::forward<ErrorDetailT>(value));
74 return *this;
75 }
77 private:
78 Aws::Vector<Aws::String> m_partitionValues;
79
80 ErrorDetail m_errorDetail;
81 bool m_partitionValuesHasBeenSet = false;
82 bool m_errorDetailHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Glue
87} // namespace Aws
const Aws::Vector< Aws::String > & GetPartitionValues() const
AWS_GLUE_API PartitionError(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPartitionValues(PartitionValuesT &&value)
void SetErrorDetail(ErrorDetailT &&value)
AWS_GLUE_API PartitionError & operator=(Aws::Utils::Json::JsonView jsonValue)
PartitionError & WithErrorDetail(ErrorDetailT &&value)
PartitionError & WithPartitionValues(PartitionValuesT &&value)
PartitionError & AddPartitionValues(PartitionValuesT &&value)
AWS_GLUE_API PartitionError()=default
const ErrorDetail & GetErrorDetail() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue