AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
MockInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/states/SFN_EXPORTS.h>
9#include <aws/states/model/MockErrorOutput.h>
10#include <aws/states/model/MockResponseValidationMode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SFN {
22namespace Model {
23
30class MockInput {
31 public:
32 AWS_SFN_API MockInput() = default;
33 AWS_SFN_API MockInput(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline const Aws::String& GetResult() const { return m_result; }
42 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
43 template <typename ResultT = Aws::String>
44 void SetResult(ResultT&& value) {
45 m_resultHasBeenSet = true;
46 m_result = std::forward<ResultT>(value);
47 }
48 template <typename ResultT = Aws::String>
49 MockInput& WithResult(ResultT&& value) {
50 SetResult(std::forward<ResultT>(value));
51 return *this;
52 }
54
56
61 inline const MockErrorOutput& GetErrorOutput() const { return m_errorOutput; }
62 inline bool ErrorOutputHasBeenSet() const { return m_errorOutputHasBeenSet; }
63 template <typename ErrorOutputT = MockErrorOutput>
64 void SetErrorOutput(ErrorOutputT&& value) {
65 m_errorOutputHasBeenSet = true;
66 m_errorOutput = std::forward<ErrorOutputT>(value);
67 }
68 template <typename ErrorOutputT = MockErrorOutput>
69 MockInput& WithErrorOutput(ErrorOutputT&& value) {
70 SetErrorOutput(std::forward<ErrorOutputT>(value));
71 return *this;
72 }
74
76
85 inline MockResponseValidationMode GetFieldValidationMode() const { return m_fieldValidationMode; }
86 inline bool FieldValidationModeHasBeenSet() const { return m_fieldValidationModeHasBeenSet; }
88 m_fieldValidationModeHasBeenSet = true;
89 m_fieldValidationMode = value;
90 }
93 return *this;
94 }
96 private:
97 Aws::String m_result;
98
99 MockErrorOutput m_errorOutput;
100
102 bool m_resultHasBeenSet = false;
103 bool m_errorOutputHasBeenSet = false;
104 bool m_fieldValidationModeHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace SFN
109} // namespace Aws
AWS_SFN_API MockInput & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ErrorOutputHasBeenSet() const
Definition MockInput.h:62
void SetFieldValidationMode(MockResponseValidationMode value)
Definition MockInput.h:87
AWS_SFN_API MockInput()=default
void SetResult(ResultT &&value)
Definition MockInput.h:44
MockInput & WithResult(ResultT &&value)
Definition MockInput.h:49
AWS_SFN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SFN_API MockInput(Aws::Utils::Json::JsonView jsonValue)
MockResponseValidationMode GetFieldValidationMode() const
Definition MockInput.h:85
bool FieldValidationModeHasBeenSet() const
Definition MockInput.h:86
const Aws::String & GetResult() const
Definition MockInput.h:41
MockInput & WithFieldValidationMode(MockResponseValidationMode value)
Definition MockInput.h:91
void SetErrorOutput(ErrorOutputT &&value)
Definition MockInput.h:64
const MockErrorOutput & GetErrorOutput() const
Definition MockInput.h:61
bool ResultHasBeenSet() const
Definition MockInput.h:42
MockInput & WithErrorOutput(ErrorOutputT &&value)
Definition MockInput.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue