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/route53-recovery-cluster/Route53RecoveryCluster_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53-recovery-cluster/model/ValidationExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/route53-recovery-cluster/model/ValidationExceptionField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Route53RecoveryCluster
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_ROUTE53RECOVERYCLUSTER_API ValidationException();
38 AWS_ROUTE53RECOVERYCLUSTER_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53RECOVERYCLUSTER_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53RECOVERYCLUSTER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetMessage() const{ return m_message; }
46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
49 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
50 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
51 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
52 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
54
56
57 inline const ValidationExceptionReason& GetReason() const{ return m_reason; }
58 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
59 inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
60 inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
61 inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;}
62 inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
64
66
67 inline const Aws::Vector<ValidationExceptionField>& GetFields() const{ return m_fields; }
68 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
69 inline void SetFields(const Aws::Vector<ValidationExceptionField>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
70 inline void SetFields(Aws::Vector<ValidationExceptionField>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
72 inline ValidationException& WithFields(Aws::Vector<ValidationExceptionField>&& value) { SetFields(std::move(value)); return *this;}
73 inline ValidationException& AddFields(const ValidationExceptionField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
74 inline ValidationException& AddFields(ValidationExceptionField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
76 private:
77
78 Aws::String m_message;
79 bool m_messageHasBeenSet = false;
80
82 bool m_reasonHasBeenSet = false;
83
85 bool m_fieldsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Route53RecoveryCluster
90} // namespace Aws
void SetFields(Aws::Vector< ValidationExceptionField > &&value)
ValidationException & WithMessage(const char *value)
const ValidationExceptionReason & GetReason() const
AWS_ROUTE53RECOVERYCLUSTER_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & AddFields(ValidationExceptionField &&value)
ValidationException & WithReason(ValidationExceptionReason &&value)
ValidationException & WithMessage(Aws::String &&value)
AWS_ROUTE53RECOVERYCLUSTER_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithReason(const ValidationExceptionReason &value)
void SetReason(ValidationExceptionReason &&value)
void SetReason(const ValidationExceptionReason &value)
AWS_ROUTE53RECOVERYCLUSTER_API ValidationException()
ValidationException & AddFields(const ValidationExceptionField &value)
AWS_ROUTE53RECOVERYCLUSTER_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ValidationExceptionField > & GetFields() const
ValidationException & WithFields(Aws::Vector< ValidationExceptionField > &&value)
void SetFields(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & WithFields(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & WithMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue