AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetFoundationModelAvailabilityResult.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/AgreementAvailability.h>
9#include <aws/bedrock/model/AuthorizationStatus.h>
10#include <aws/bedrock/model/EntitlementAvailability.h>
11#include <aws/bedrock/model/RegionAvailability.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Bedrock {
27namespace Model {
29 public:
30 AWS_BEDROCK_API GetFoundationModelAvailabilityResult() = default;
33
35
38 inline const Aws::String& GetModelId() const { return m_modelId; }
39 template <typename ModelIdT = Aws::String>
40 void SetModelId(ModelIdT&& value) {
41 m_modelIdHasBeenSet = true;
42 m_modelId = std::forward<ModelIdT>(value);
43 }
44 template <typename ModelIdT = Aws::String>
46 SetModelId(std::forward<ModelIdT>(value));
47 return *this;
48 }
50
52
55 inline const AgreementAvailability& GetAgreementAvailability() const { return m_agreementAvailability; }
56 template <typename AgreementAvailabilityT = AgreementAvailability>
58 m_agreementAvailabilityHasBeenSet = true;
59 m_agreementAvailability = std::forward<AgreementAvailabilityT>(value);
60 }
61 template <typename AgreementAvailabilityT = AgreementAvailability>
63 SetAgreementAvailability(std::forward<AgreementAvailabilityT>(value));
64 return *this;
65 }
67
69
72 inline AuthorizationStatus GetAuthorizationStatus() const { return m_authorizationStatus; }
74 m_authorizationStatusHasBeenSet = true;
75 m_authorizationStatus = value;
76 }
79 return *this;
80 }
82
84
87 inline EntitlementAvailability GetEntitlementAvailability() const { return m_entitlementAvailability; }
89 m_entitlementAvailabilityHasBeenSet = true;
90 m_entitlementAvailability = value;
91 }
94 return *this;
95 }
97
99
102 inline RegionAvailability GetRegionAvailability() const { return m_regionAvailability; }
104 m_regionAvailabilityHasBeenSet = true;
105 m_regionAvailability = value;
106 }
109 return *this;
110 }
112
114
115 inline const Aws::String& GetRequestId() const { return m_requestId; }
116 template <typename RequestIdT = Aws::String>
117 void SetRequestId(RequestIdT&& value) {
118 m_requestIdHasBeenSet = true;
119 m_requestId = std::forward<RequestIdT>(value);
120 }
121 template <typename RequestIdT = Aws::String>
123 SetRequestId(std::forward<RequestIdT>(value));
124 return *this;
125 }
127 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
128
129 private:
130 Aws::String m_modelId;
131
132 AgreementAvailability m_agreementAvailability;
133
135
137
139
140 Aws::String m_requestId;
141 Aws::Http::HttpResponseCode m_HttpResponseCode;
142 bool m_modelIdHasBeenSet = false;
143 bool m_agreementAvailabilityHasBeenSet = false;
144 bool m_authorizationStatusHasBeenSet = false;
145 bool m_entitlementAvailabilityHasBeenSet = false;
146 bool m_regionAvailabilityHasBeenSet = false;
147 bool m_requestIdHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace Bedrock
152} // namespace Aws
AWS_BEDROCK_API GetFoundationModelAvailabilityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFoundationModelAvailabilityResult & WithRequestId(RequestIdT &&value)
GetFoundationModelAvailabilityResult & WithAgreementAvailability(AgreementAvailabilityT &&value)
AWS_BEDROCK_API GetFoundationModelAvailabilityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFoundationModelAvailabilityResult & WithRegionAvailability(RegionAvailability value)
GetFoundationModelAvailabilityResult & WithEntitlementAvailability(EntitlementAvailability value)
GetFoundationModelAvailabilityResult & WithAuthorizationStatus(AuthorizationStatus value)
GetFoundationModelAvailabilityResult & WithModelId(ModelIdT &&value)
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