AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
FlowValidation.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/FlowValidationDetails.h>
9#include <aws/bedrock-agent/model/FlowValidationSeverity.h>
10#include <aws/bedrock-agent/model/FlowValidationType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent {
23namespace Model {
24
36 public:
37 AWS_BEDROCKAGENT_API FlowValidation() = default;
40 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetMessage() const { return m_message; }
47 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
48 template <typename MessageT = Aws::String>
49 void SetMessage(MessageT&& value) {
50 m_messageHasBeenSet = true;
51 m_message = std::forward<MessageT>(value);
52 }
53 template <typename MessageT = Aws::String>
55 SetMessage(std::forward<MessageT>(value));
56 return *this;
57 }
59
61
64 inline FlowValidationSeverity GetSeverity() const { return m_severity; }
65 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
67 m_severityHasBeenSet = true;
68 m_severity = value;
69 }
71 SetSeverity(value);
72 return *this;
73 }
75
77
80 inline const FlowValidationDetails& GetDetails() const { return m_details; }
81 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
82 template <typename DetailsT = FlowValidationDetails>
83 void SetDetails(DetailsT&& value) {
84 m_detailsHasBeenSet = true;
85 m_details = std::forward<DetailsT>(value);
86 }
87 template <typename DetailsT = FlowValidationDetails>
89 SetDetails(std::forward<DetailsT>(value));
90 return *this;
91 }
93
95
98 inline FlowValidationType GetType() const { return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 inline void SetType(FlowValidationType value) {
101 m_typeHasBeenSet = true;
102 m_type = value;
103 }
105 SetType(value);
106 return *this;
107 }
109 private:
110 Aws::String m_message;
111
113
114 FlowValidationDetails m_details;
115
117 bool m_messageHasBeenSet = false;
118 bool m_severityHasBeenSet = false;
119 bool m_detailsHasBeenSet = false;
120 bool m_typeHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace BedrockAgent
125} // namespace Aws
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(FlowValidationType value)
void SetSeverity(FlowValidationSeverity value)
FlowValidation & WithMessage(MessageT &&value)
FlowValidation & WithType(FlowValidationType value)
FlowValidation & WithDetails(DetailsT &&value)
AWS_BEDROCKAGENT_API FlowValidation & operator=(Aws::Utils::Json::JsonView jsonValue)
FlowValidation & WithSeverity(FlowValidationSeverity value)
const Aws::String & GetMessage() const
AWS_BEDROCKAGENT_API FlowValidation(Aws::Utils::Json::JsonView jsonValue)
FlowValidationSeverity GetSeverity() const
AWS_BEDROCKAGENT_API FlowValidation()=default
const FlowValidationDetails & GetDetails() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue