AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EndpointMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/EndpointStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
29 public:
30 AWS_SAGEMAKER_API EndpointMetadata() = default;
31 AWS_SAGEMAKER_API EndpointMetadata(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
40 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
41 template <typename EndpointNameT = Aws::String>
42 void SetEndpointName(EndpointNameT&& value) {
43 m_endpointNameHasBeenSet = true;
44 m_endpointName = std::forward<EndpointNameT>(value);
45 }
46 template <typename EndpointNameT = Aws::String>
47 EndpointMetadata& WithEndpointName(EndpointNameT&& value) {
48 SetEndpointName(std::forward<EndpointNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetEndpointConfigName() const { return m_endpointConfigName; }
58 inline bool EndpointConfigNameHasBeenSet() const { return m_endpointConfigNameHasBeenSet; }
59 template <typename EndpointConfigNameT = Aws::String>
60 void SetEndpointConfigName(EndpointConfigNameT&& value) {
61 m_endpointConfigNameHasBeenSet = true;
62 m_endpointConfigName = std::forward<EndpointConfigNameT>(value);
63 }
64 template <typename EndpointConfigNameT = Aws::String>
65 EndpointMetadata& WithEndpointConfigName(EndpointConfigNameT&& value) {
66 SetEndpointConfigName(std::forward<EndpointConfigNameT>(value));
67 return *this;
68 }
70
72
78 inline EndpointStatus GetEndpointStatus() const { return m_endpointStatus; }
79 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
80 inline void SetEndpointStatus(EndpointStatus value) {
81 m_endpointStatusHasBeenSet = true;
82 m_endpointStatus = value;
83 }
85 SetEndpointStatus(value);
86 return *this;
87 }
89
91
96 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
97 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
98 template <typename FailureReasonT = Aws::String>
99 void SetFailureReason(FailureReasonT&& value) {
100 m_failureReasonHasBeenSet = true;
101 m_failureReason = std::forward<FailureReasonT>(value);
102 }
103 template <typename FailureReasonT = Aws::String>
104 EndpointMetadata& WithFailureReason(FailureReasonT&& value) {
105 SetFailureReason(std::forward<FailureReasonT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_endpointName;
111
112 Aws::String m_endpointConfigName;
113
114 EndpointStatus m_endpointStatus{EndpointStatus::NOT_SET};
115
116 Aws::String m_failureReason;
117 bool m_endpointNameHasBeenSet = false;
118 bool m_endpointConfigNameHasBeenSet = false;
119 bool m_endpointStatusHasBeenSet = false;
120 bool m_failureReasonHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace SageMaker
125} // namespace Aws
void SetEndpointStatus(EndpointStatus value)
AWS_SAGEMAKER_API EndpointMetadata()=default
EndpointMetadata & WithEndpointConfigName(EndpointConfigNameT &&value)
void SetFailureReason(FailureReasonT &&value)
const Aws::String & GetEndpointName() const
void SetEndpointConfigName(EndpointConfigNameT &&value)
AWS_SAGEMAKER_API EndpointMetadata(Aws::Utils::Json::JsonView jsonValue)
EndpointMetadata & WithEndpointStatus(EndpointStatus value)
const Aws::String & GetEndpointConfigName() const
void SetEndpointName(EndpointNameT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API EndpointMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
EndpointMetadata & WithEndpointName(EndpointNameT &&value)
const Aws::String & GetFailureReason() const
EndpointMetadata & WithFailureReason(FailureReasonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue