AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApplyGuardrailResult.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailUsage.h>
9#include <aws/bedrock-runtime/model/GuardrailAction.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/bedrock-runtime/model/GuardrailCoverage.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/bedrock-runtime/model/GuardrailOutputContent.h>
14#include <aws/bedrock-runtime/model/GuardrailAssessment.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace BedrockRuntime
30{
31namespace Model
32{
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API ApplyGuardrailResult();
39
40
42
45 inline const GuardrailUsage& GetUsage() const{ return m_usage; }
46 inline void SetUsage(const GuardrailUsage& value) { m_usage = value; }
47 inline void SetUsage(GuardrailUsage&& value) { m_usage = std::move(value); }
48 inline ApplyGuardrailResult& WithUsage(const GuardrailUsage& value) { SetUsage(value); return *this;}
49 inline ApplyGuardrailResult& WithUsage(GuardrailUsage&& value) { SetUsage(std::move(value)); return *this;}
51
53
56 inline const GuardrailAction& GetAction() const{ return m_action; }
57 inline void SetAction(const GuardrailAction& value) { m_action = value; }
58 inline void SetAction(GuardrailAction&& value) { m_action = std::move(value); }
59 inline ApplyGuardrailResult& WithAction(const GuardrailAction& value) { SetAction(value); return *this;}
60 inline ApplyGuardrailResult& WithAction(GuardrailAction&& value) { SetAction(std::move(value)); return *this;}
62
64
67 inline const Aws::Vector<GuardrailOutputContent>& GetOutputs() const{ return m_outputs; }
68 inline void SetOutputs(const Aws::Vector<GuardrailOutputContent>& value) { m_outputs = value; }
69 inline void SetOutputs(Aws::Vector<GuardrailOutputContent>&& value) { m_outputs = std::move(value); }
71 inline ApplyGuardrailResult& WithOutputs(Aws::Vector<GuardrailOutputContent>&& value) { SetOutputs(std::move(value)); return *this;}
72 inline ApplyGuardrailResult& AddOutputs(const GuardrailOutputContent& value) { m_outputs.push_back(value); return *this; }
73 inline ApplyGuardrailResult& AddOutputs(GuardrailOutputContent&& value) { m_outputs.push_back(std::move(value)); return *this; }
75
77
80 inline const Aws::Vector<GuardrailAssessment>& GetAssessments() const{ return m_assessments; }
81 inline void SetAssessments(const Aws::Vector<GuardrailAssessment>& value) { m_assessments = value; }
82 inline void SetAssessments(Aws::Vector<GuardrailAssessment>&& value) { m_assessments = std::move(value); }
84 inline ApplyGuardrailResult& WithAssessments(Aws::Vector<GuardrailAssessment>&& value) { SetAssessments(std::move(value)); return *this;}
85 inline ApplyGuardrailResult& AddAssessments(const GuardrailAssessment& value) { m_assessments.push_back(value); return *this; }
86 inline ApplyGuardrailResult& AddAssessments(GuardrailAssessment&& value) { m_assessments.push_back(std::move(value)); return *this; }
88
90
93 inline const GuardrailCoverage& GetGuardrailCoverage() const{ return m_guardrailCoverage; }
94 inline void SetGuardrailCoverage(const GuardrailCoverage& value) { m_guardrailCoverage = value; }
95 inline void SetGuardrailCoverage(GuardrailCoverage&& value) { m_guardrailCoverage = std::move(value); }
97 inline ApplyGuardrailResult& WithGuardrailCoverage(GuardrailCoverage&& value) { SetGuardrailCoverage(std::move(value)); return *this;}
99
101
102 inline const Aws::String& GetRequestId() const{ return m_requestId; }
103 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
104 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
105 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
106 inline ApplyGuardrailResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
107 inline ApplyGuardrailResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
108 inline ApplyGuardrailResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
110 private:
111
112 GuardrailUsage m_usage;
113
114 GuardrailAction m_action;
115
117
119
120 GuardrailCoverage m_guardrailCoverage;
121
122 Aws::String m_requestId;
123 };
124
125} // namespace Model
126} // namespace BedrockRuntime
127} // namespace Aws
ApplyGuardrailResult & WithUsage(GuardrailUsage &&value)
ApplyGuardrailResult & WithGuardrailCoverage(const GuardrailCoverage &value)
const GuardrailCoverage & GetGuardrailCoverage() const
void SetAssessments(const Aws::Vector< GuardrailAssessment > &value)
ApplyGuardrailResult & WithGuardrailCoverage(GuardrailCoverage &&value)
ApplyGuardrailResult & WithUsage(const GuardrailUsage &value)
const Aws::Vector< GuardrailAssessment > & GetAssessments() const
void SetOutputs(Aws::Vector< GuardrailOutputContent > &&value)
ApplyGuardrailResult & WithRequestId(const char *value)
ApplyGuardrailResult & AddOutputs(const GuardrailOutputContent &value)
void SetGuardrailCoverage(const GuardrailCoverage &value)
ApplyGuardrailResult & WithAction(const GuardrailAction &value)
AWS_BEDROCKRUNTIME_API ApplyGuardrailResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAssessments(Aws::Vector< GuardrailAssessment > &&value)
ApplyGuardrailResult & WithOutputs(Aws::Vector< GuardrailOutputContent > &&value)
ApplyGuardrailResult & WithAssessments(const Aws::Vector< GuardrailAssessment > &value)
ApplyGuardrailResult & WithAssessments(Aws::Vector< GuardrailAssessment > &&value)
void SetOutputs(const Aws::Vector< GuardrailOutputContent > &value)
const Aws::Vector< GuardrailOutputContent > & GetOutputs() const
ApplyGuardrailResult & WithAction(GuardrailAction &&value)
ApplyGuardrailResult & WithRequestId(const Aws::String &value)
ApplyGuardrailResult & AddOutputs(GuardrailOutputContent &&value)
ApplyGuardrailResult & AddAssessments(GuardrailAssessment &&value)
ApplyGuardrailResult & WithOutputs(const Aws::Vector< GuardrailOutputContent > &value)
ApplyGuardrailResult & AddAssessments(const GuardrailAssessment &value)
AWS_BEDROCKRUNTIME_API ApplyGuardrailResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ApplyGuardrailResult & WithRequestId(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