AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RealtimeEndpointInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/machinelearning/MachineLearning_EXPORTS.h>
10#include <aws/machinelearning/model/RealtimeEndpointStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MachineLearning {
22namespace Model {
23
31 public:
32 AWS_MACHINELEARNING_API RealtimeEndpointInfo() = default;
33 AWS_MACHINELEARNING_API RealtimeEndpointInfo(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MACHINELEARNING_API RealtimeEndpointInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline int GetPeakRequestsPerSecond() const { return m_peakRequestsPerSecond; }
43 inline bool PeakRequestsPerSecondHasBeenSet() const { return m_peakRequestsPerSecondHasBeenSet; }
44 inline void SetPeakRequestsPerSecond(int value) {
45 m_peakRequestsPerSecondHasBeenSet = true;
46 m_peakRequestsPerSecond = value;
47 }
50 return *this;
51 }
53
55
59 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
60 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
61 template <typename CreatedAtT = Aws::Utils::DateTime>
62 void SetCreatedAt(CreatedAtT&& value) {
63 m_createdAtHasBeenSet = true;
64 m_createdAt = std::forward<CreatedAtT>(value);
65 }
66 template <typename CreatedAtT = Aws::Utils::DateTime>
67 RealtimeEndpointInfo& WithCreatedAt(CreatedAtT&& value) {
68 SetCreatedAt(std::forward<CreatedAtT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetEndpointUrl() const { return m_endpointUrl; }
80 inline bool EndpointUrlHasBeenSet() const { return m_endpointUrlHasBeenSet; }
81 template <typename EndpointUrlT = Aws::String>
82 void SetEndpointUrl(EndpointUrlT&& value) {
83 m_endpointUrlHasBeenSet = true;
84 m_endpointUrl = std::forward<EndpointUrlT>(value);
85 }
86 template <typename EndpointUrlT = Aws::String>
87 RealtimeEndpointInfo& WithEndpointUrl(EndpointUrlT&& value) {
88 SetEndpointUrl(std::forward<EndpointUrlT>(value));
89 return *this;
90 }
92
94
102 inline RealtimeEndpointStatus GetEndpointStatus() const { return m_endpointStatus; }
103 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
105 m_endpointStatusHasBeenSet = true;
106 m_endpointStatus = value;
107 }
109 SetEndpointStatus(value);
110 return *this;
111 }
113 private:
114 int m_peakRequestsPerSecond{0};
115
116 Aws::Utils::DateTime m_createdAt{};
117
118 Aws::String m_endpointUrl;
119
121 bool m_peakRequestsPerSecondHasBeenSet = false;
122 bool m_createdAtHasBeenSet = false;
123 bool m_endpointUrlHasBeenSet = false;
124 bool m_endpointStatusHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace MachineLearning
129} // namespace Aws
RealtimeEndpointInfo & WithEndpointStatus(RealtimeEndpointStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
RealtimeEndpointInfo & WithEndpointUrl(EndpointUrlT &&value)
void SetEndpointStatus(RealtimeEndpointStatus value)
RealtimeEndpointInfo & WithPeakRequestsPerSecond(int value)
RealtimeEndpointInfo & WithCreatedAt(CreatedAtT &&value)
AWS_MACHINELEARNING_API RealtimeEndpointInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACHINELEARNING_API RealtimeEndpointInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_MACHINELEARNING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACHINELEARNING_API RealtimeEndpointInfo()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue