AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/states/SFN_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/states/model/ValidationExceptionReason.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 SFN
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SFN_API ValidationException();
40
41
43
44 inline const Aws::String& GetMessage() const{ return m_message; }
45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
47 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
48 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
49 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
50 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
51 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
53
55
59 inline const ValidationExceptionReason& GetReason() const{ return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
62 inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
63 inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;}
64 inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_message;
69 bool m_messageHasBeenSet = false;
70
72 bool m_reasonHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace SFN
77} // namespace Aws
AWS_SFN_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
const ValidationExceptionReason & GetReason() const
void SetReason(ValidationExceptionReason &&value)
const Aws::String & GetMessage() const
void SetReason(const ValidationExceptionReason &value)
ValidationException & WithMessage(Aws::String &&value)
AWS_SFN_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(const Aws::String &value)
ValidationException & WithReason(const ValidationExceptionReason &value)
AWS_SFN_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & WithReason(ValidationExceptionReason &&value)
void SetMessage(const Aws::String &value)
ValidationException & WithMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue