AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateGuardrailResult.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Bedrock {
24namespace Model {
26 public:
27 AWS_BEDROCK_API CreateGuardrailResult() = default;
30
32
35 inline const Aws::String& GetGuardrailId() const { return m_guardrailId; }
36 template <typename GuardrailIdT = Aws::String>
38 m_guardrailIdHasBeenSet = true;
39 m_guardrailId = std::forward<GuardrailIdT>(value);
40 }
41 template <typename GuardrailIdT = Aws::String>
43 SetGuardrailId(std::forward<GuardrailIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetGuardrailArn() const { return m_guardrailArn; }
53 template <typename GuardrailArnT = Aws::String>
55 m_guardrailArnHasBeenSet = true;
56 m_guardrailArn = std::forward<GuardrailArnT>(value);
57 }
58 template <typename GuardrailArnT = Aws::String>
60 SetGuardrailArn(std::forward<GuardrailArnT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetVersion() const { return m_version; }
71 template <typename VersionT = Aws::String>
72 void SetVersion(VersionT&& value) {
73 m_versionHasBeenSet = true;
74 m_version = std::forward<VersionT>(value);
75 }
76 template <typename VersionT = Aws::String>
78 SetVersion(std::forward<VersionT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
88 template <typename CreatedAtT = Aws::Utils::DateTime>
89 void SetCreatedAt(CreatedAtT&& value) {
90 m_createdAtHasBeenSet = true;
91 m_createdAt = std::forward<CreatedAtT>(value);
92 }
93 template <typename CreatedAtT = Aws::Utils::DateTime>
95 SetCreatedAt(std::forward<CreatedAtT>(value));
96 return *this;
97 }
99
101
102 inline const Aws::String& GetRequestId() const { return m_requestId; }
103 template <typename RequestIdT = Aws::String>
104 void SetRequestId(RequestIdT&& value) {
105 m_requestIdHasBeenSet = true;
106 m_requestId = std::forward<RequestIdT>(value);
107 }
108 template <typename RequestIdT = Aws::String>
110 SetRequestId(std::forward<RequestIdT>(value));
111 return *this;
112 }
114 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
115
116 private:
117 Aws::String m_guardrailId;
118
119 Aws::String m_guardrailArn;
120
121 Aws::String m_version;
122
123 Aws::Utils::DateTime m_createdAt{};
124
125 Aws::String m_requestId;
126 Aws::Http::HttpResponseCode m_HttpResponseCode;
127 bool m_guardrailIdHasBeenSet = false;
128 bool m_guardrailArnHasBeenSet = false;
129 bool m_versionHasBeenSet = false;
130 bool m_createdAtHasBeenSet = false;
131 bool m_requestIdHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace Bedrock
136} // namespace Aws
AWS_BEDROCK_API CreateGuardrailResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateGuardrailResult & WithCreatedAt(CreatedAtT &&value)
CreateGuardrailResult & WithGuardrailArn(GuardrailArnT &&value)
AWS_BEDROCK_API CreateGuardrailResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateGuardrailResult & WithGuardrailId(GuardrailIdT &&value)
AWS_BEDROCK_API CreateGuardrailResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateGuardrailResult & WithVersion(VersionT &&value)
CreateGuardrailResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() 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