AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
ProgramSetValidationFailure.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Braket {
21namespace Model {
22
30 public:
31 AWS_BRAKET_API ProgramSetValidationFailure() = default;
34 AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline long long GetProgramIndex() const { return m_programIndex; }
41 inline bool ProgramIndexHasBeenSet() const { return m_programIndexHasBeenSet; }
42 inline void SetProgramIndex(long long value) {
43 m_programIndexHasBeenSet = true;
44 m_programIndex = value;
45 }
47 SetProgramIndex(value);
48 return *this;
49 }
51
53
56 inline long long GetInputsIndex() const { return m_inputsIndex; }
57 inline bool InputsIndexHasBeenSet() const { return m_inputsIndexHasBeenSet; }
58 inline void SetInputsIndex(long long value) {
59 m_inputsIndexHasBeenSet = true;
60 m_inputsIndex = value;
61 }
63 SetInputsIndex(value);
64 return *this;
65 }
67
69
73 inline const Aws::Vector<Aws::String>& GetErrors() const { return m_errors; }
74 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
75 template <typename ErrorsT = Aws::Vector<Aws::String>>
76 void SetErrors(ErrorsT&& value) {
77 m_errorsHasBeenSet = true;
78 m_errors = std::forward<ErrorsT>(value);
79 }
80 template <typename ErrorsT = Aws::Vector<Aws::String>>
82 SetErrors(std::forward<ErrorsT>(value));
83 return *this;
84 }
85 template <typename ErrorsT = Aws::String>
87 m_errorsHasBeenSet = true;
88 m_errors.emplace_back(std::forward<ErrorsT>(value));
89 return *this;
90 }
92 private:
93 long long m_programIndex{0};
94
95 long long m_inputsIndex{0};
96
98 bool m_programIndexHasBeenSet = false;
99 bool m_inputsIndexHasBeenSet = false;
100 bool m_errorsHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Braket
105} // namespace Aws
ProgramSetValidationFailure & AddErrors(ErrorsT &&value)
AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const
ProgramSetValidationFailure & WithProgramIndex(long long value)
AWS_BRAKET_API ProgramSetValidationFailure()=default
AWS_BRAKET_API ProgramSetValidationFailure(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetErrors() const
ProgramSetValidationFailure & WithInputsIndex(long long value)
ProgramSetValidationFailure & WithErrors(ErrorsT &&value)
AWS_BRAKET_API ProgramSetValidationFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue