AWS SDK for C++

AWS SDK for C++ Version 1.11.815

Loading...
Searching...
No Matches
SpanGuardrailAssessment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/GuardrailAction.h>
11#include <aws/qconnect/model/GuardrailPolicyResult.h>
12#include <aws/qconnect/model/GuardrailSource.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QConnect {
24namespace Model {
25
34 public:
35 AWS_QCONNECT_API SpanGuardrailAssessment() = default;
38 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetGuardrailId() const { return m_guardrailId; }
45 inline bool GuardrailIdHasBeenSet() const { return m_guardrailIdHasBeenSet; }
46 template <typename GuardrailIdT = Aws::String>
48 m_guardrailIdHasBeenSet = true;
49 m_guardrailId = std::forward<GuardrailIdT>(value);
50 }
51 template <typename GuardrailIdT = Aws::String>
53 SetGuardrailId(std::forward<GuardrailIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetGuardrailName() const { return m_guardrailName; }
63 inline bool GuardrailNameHasBeenSet() const { return m_guardrailNameHasBeenSet; }
64 template <typename GuardrailNameT = Aws::String>
66 m_guardrailNameHasBeenSet = true;
67 m_guardrailName = std::forward<GuardrailNameT>(value);
68 }
69 template <typename GuardrailNameT = Aws::String>
71 SetGuardrailName(std::forward<GuardrailNameT>(value));
72 return *this;
73 }
75
77
80 inline GuardrailSource GetSource() const { return m_source; }
81 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
82 inline void SetSource(GuardrailSource value) {
83 m_sourceHasBeenSet = true;
84 m_source = value;
85 }
87 SetSource(value);
88 return *this;
89 }
91
93
96 inline GuardrailAction GetAction() const { return m_action; }
97 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
98 inline void SetAction(GuardrailAction value) {
99 m_actionHasBeenSet = true;
100 m_action = value;
101 }
103 SetAction(value);
104 return *this;
105 }
107
109
112 inline const Aws::Vector<GuardrailPolicyResult>& GetPolicies() const { return m_policies; }
113 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
114 template <typename PoliciesT = Aws::Vector<GuardrailPolicyResult>>
115 void SetPolicies(PoliciesT&& value) {
116 m_policiesHasBeenSet = true;
117 m_policies = std::forward<PoliciesT>(value);
118 }
119 template <typename PoliciesT = Aws::Vector<GuardrailPolicyResult>>
121 SetPolicies(std::forward<PoliciesT>(value));
122 return *this;
123 }
124 template <typename PoliciesT = GuardrailPolicyResult>
126 m_policiesHasBeenSet = true;
127 m_policies.emplace_back(std::forward<PoliciesT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_guardrailId;
133
134 Aws::String m_guardrailName;
135
137
139
141 bool m_guardrailIdHasBeenSet = false;
142 bool m_guardrailNameHasBeenSet = false;
143 bool m_sourceHasBeenSet = false;
144 bool m_actionHasBeenSet = false;
145 bool m_policiesHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace QConnect
150} // namespace Aws
SpanGuardrailAssessment & WithGuardrailId(GuardrailIdT &&value)
SpanGuardrailAssessment & WithPolicies(PoliciesT &&value)
const Aws::Vector< GuardrailPolicyResult > & GetPolicies() const
AWS_QCONNECT_API SpanGuardrailAssessment(Aws::Utils::Json::JsonView jsonValue)
SpanGuardrailAssessment & AddPolicies(PoliciesT &&value)
SpanGuardrailAssessment & WithAction(GuardrailAction value)
AWS_QCONNECT_API SpanGuardrailAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
SpanGuardrailAssessment & WithGuardrailName(GuardrailNameT &&value)
AWS_QCONNECT_API SpanGuardrailAssessment()=default
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SpanGuardrailAssessment & WithSource(GuardrailSource value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue