AWS SDK for C++

AWS SDK for C++ Version 1.11.632

Loading...
Searching...
No Matches
ProgramSetValidationFailure.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Braket
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BRAKET_API ProgramSetValidationFailure() = default;
39 AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline long long GetProgramIndex() const { return m_programIndex; }
47 inline bool ProgramIndexHasBeenSet() const { return m_programIndexHasBeenSet; }
48 inline void SetProgramIndex(long long value) { m_programIndexHasBeenSet = true; m_programIndex = value; }
49 inline ProgramSetValidationFailure& WithProgramIndex(long long value) { SetProgramIndex(value); return *this;}
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) { m_inputsIndexHasBeenSet = true; m_inputsIndex = value; }
59 inline ProgramSetValidationFailure& WithInputsIndex(long long value) { SetInputsIndex(value); return *this;}
61
63
67 inline const Aws::Vector<Aws::String>& GetErrors() const { return m_errors; }
68 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
69 template<typename ErrorsT = Aws::Vector<Aws::String>>
70 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
71 template<typename ErrorsT = Aws::Vector<Aws::String>>
72 ProgramSetValidationFailure& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
73 template<typename ErrorsT = Aws::String>
74 ProgramSetValidationFailure& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
76 private:
77
78 long long m_programIndex{0};
79 bool m_programIndexHasBeenSet = false;
80
81 long long m_inputsIndex{0};
82 bool m_inputsIndexHasBeenSet = false;
83
85 bool m_errorsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Braket
90} // 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