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/appconfigcloudextension/AppConfigCloudExtension_EXPORTS.h>
8#include <aws/appconfigcloudextension/model/FieldConstraint.h>
9#include <aws/appconfigcloudextension/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 AppConfigCloudExtension {
21namespace Model {
22
30 public:
31 AWS_APPCONFIGCLOUDEXTENSION_API ValidationError() = default;
32 AWS_APPCONFIGCLOUDEXTENSION_API ValidationError(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPCONFIGCLOUDEXTENSION_API ValidationError& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPCONFIGCLOUDEXTENSION_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
58 inline const SemanticError& GetSemanticError() const { return m_semanticError; }
59 inline bool SemanticErrorHasBeenSet() const { return m_semanticErrorHasBeenSet; }
60 template <typename SemanticErrorT = SemanticError>
61 void SetSemanticError(SemanticErrorT&& value) {
62 m_semanticErrorHasBeenSet = true;
63 m_semanticError = std::forward<SemanticErrorT>(value);
64 }
65 template <typename SemanticErrorT = SemanticError>
66 ValidationError& WithSemanticError(SemanticErrorT&& value) {
67 SetSemanticError(std::forward<SemanticErrorT>(value));
68 return *this;
69 }
71 private:
72 FieldConstraint m_fieldConstraint;
73
74 SemanticError m_semanticError;
75 bool m_fieldConstraintHasBeenSet = false;
76 bool m_semanticErrorHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace AppConfigCloudExtension
81} // namespace Aws
ValidationError & WithSemanticError(SemanticErrorT &&value)
AWS_APPCONFIGCLOUDEXTENSION_API ValidationError()=default
AWS_APPCONFIGCLOUDEXTENSION_API ValidationError(Aws::Utils::Json::JsonView jsonValue)
AWS_APPCONFIGCLOUDEXTENSION_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationError & WithFieldConstraint(FieldConstraintT &&value)
AWS_APPCONFIGCLOUDEXTENSION_API ValidationError & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue