AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SageMakerEndpoint.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/VpcConfig.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Bedrock {
21namespace Model {
22
30 public:
31 AWS_BEDROCK_API SageMakerEndpoint() = default;
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline int GetInitialInstanceCount() const { return m_initialInstanceCount; }
42 inline bool InitialInstanceCountHasBeenSet() const { return m_initialInstanceCountHasBeenSet; }
43 inline void SetInitialInstanceCount(int value) {
44 m_initialInstanceCountHasBeenSet = true;
45 m_initialInstanceCount = value;
46 }
49 return *this;
50 }
52
54
57 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
58 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
59 template <typename InstanceTypeT = Aws::String>
61 m_instanceTypeHasBeenSet = true;
62 m_instanceType = std::forward<InstanceTypeT>(value);
63 }
64 template <typename InstanceTypeT = Aws::String>
66 SetInstanceType(std::forward<InstanceTypeT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetExecutionRole() const { return m_executionRole; }
78 inline bool ExecutionRoleHasBeenSet() const { return m_executionRoleHasBeenSet; }
79 template <typename ExecutionRoleT = Aws::String>
81 m_executionRoleHasBeenSet = true;
82 m_executionRole = std::forward<ExecutionRoleT>(value);
83 }
84 template <typename ExecutionRoleT = Aws::String>
86 SetExecutionRole(std::forward<ExecutionRoleT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetKmsEncryptionKey() const { return m_kmsEncryptionKey; }
98 inline bool KmsEncryptionKeyHasBeenSet() const { return m_kmsEncryptionKeyHasBeenSet; }
99 template <typename KmsEncryptionKeyT = Aws::String>
101 m_kmsEncryptionKeyHasBeenSet = true;
102 m_kmsEncryptionKey = std::forward<KmsEncryptionKeyT>(value);
103 }
104 template <typename KmsEncryptionKeyT = Aws::String>
106 SetKmsEncryptionKey(std::forward<KmsEncryptionKeyT>(value));
107 return *this;
108 }
110
112
115 inline const VpcConfig& GetVpc() const { return m_vpc; }
116 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
117 template <typename VpcT = VpcConfig>
118 void SetVpc(VpcT&& value) {
119 m_vpcHasBeenSet = true;
120 m_vpc = std::forward<VpcT>(value);
121 }
122 template <typename VpcT = VpcConfig>
124 SetVpc(std::forward<VpcT>(value));
125 return *this;
126 }
128 private:
129 int m_initialInstanceCount{0};
130
131 Aws::String m_instanceType;
132
133 Aws::String m_executionRole;
134
135 Aws::String m_kmsEncryptionKey;
136
137 VpcConfig m_vpc;
138 bool m_initialInstanceCountHasBeenSet = false;
139 bool m_instanceTypeHasBeenSet = false;
140 bool m_executionRoleHasBeenSet = false;
141 bool m_kmsEncryptionKeyHasBeenSet = false;
142 bool m_vpcHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace Bedrock
147} // namespace Aws
SageMakerEndpoint & WithVpc(VpcT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetExecutionRole() const
AWS_BEDROCK_API SageMakerEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
SageMakerEndpoint & WithExecutionRole(ExecutionRoleT &&value)
void SetKmsEncryptionKey(KmsEncryptionKeyT &&value)
void SetInstanceType(InstanceTypeT &&value)
SageMakerEndpoint & WithKmsEncryptionKey(KmsEncryptionKeyT &&value)
const Aws::String & GetKmsEncryptionKey() const
SageMakerEndpoint & WithInstanceType(InstanceTypeT &&value)
void SetExecutionRole(ExecutionRoleT &&value)
AWS_BEDROCK_API SageMakerEndpoint()=default
SageMakerEndpoint & WithInitialInstanceCount(int value)
AWS_BEDROCK_API SageMakerEndpoint(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceType() 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