AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ValidationError.h
1
6#pragma once
7#include <aws/cloudextensions/CloudExtensions_EXPORTS.h>
8#include <aws/cloudextensions/model/FieldConstraint.h>
9#include <aws/cloudextensions/model/SemanticError.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudExtensions {
21namespace Model {
22
30 public:
31 AWS_CLOUDEXTENSIONS_API ValidationError() = default;
32 AWS_CLOUDEXTENSIONS_API ValidationError(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDEXTENSIONS_API ValidationError& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const FieldConstraint& GetFieldConstraint() const { return m_fieldConstraint; }
41 inline bool FieldConstraintHasBeenSet() const { return m_fieldConstraintHasBeenSet; }
42 template <typename FieldConstraintT = FieldConstraint>
43 void SetFieldConstraint(FieldConstraintT&& value) {
44 m_fieldConstraintHasBeenSet = true;
45 m_fieldConstraint = std::forward<FieldConstraintT>(value);
46 }
47 template <typename FieldConstraintT = FieldConstraint>
48 ValidationError& WithFieldConstraint(FieldConstraintT&& value) {
49 SetFieldConstraint(std::forward<FieldConstraintT>(value));
50 return *this;
51 }
53
55
59 inline const SemanticError& GetSemanticError() const { return m_semanticError; }
60 inline bool SemanticErrorHasBeenSet() const { return m_semanticErrorHasBeenSet; }
61 template <typename SemanticErrorT = SemanticError>
62 void SetSemanticError(SemanticErrorT&& value) {
63 m_semanticErrorHasBeenSet = true;
64 m_semanticError = std::forward<SemanticErrorT>(value);
65 }
66 template <typename SemanticErrorT = SemanticError>
67 ValidationError& WithSemanticError(SemanticErrorT&& value) {
68 SetSemanticError(std::forward<SemanticErrorT>(value));
69 return *this;
70 }
72 private:
73 FieldConstraint m_fieldConstraint;
74
75 SemanticError m_semanticError;
76 bool m_fieldConstraintHasBeenSet = false;
77 bool m_semanticErrorHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CloudExtensions
82} // namespace Aws
void SetSemanticError(SemanticErrorT &&value)
ValidationError & WithFieldConstraint(FieldConstraintT &&value)
AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDEXTENSIONS_API ValidationError()=default
ValidationError & WithSemanticError(SemanticErrorT &&value)
AWS_CLOUDEXTENSIONS_API ValidationError(Aws::Utils::Json::JsonView jsonValue)
const SemanticError & GetSemanticError() const
const FieldConstraint & GetFieldConstraint() const
void SetFieldConstraint(FieldConstraintT &&value)
AWS_CLOUDEXTENSIONS_API ValidationError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue