AWS SDK for C++  0.14.3
AWS SDK for C++
RealtimeEndpointInfo.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace MachineLearning
31 {
32 namespace Model
33 {
34 
40  {
41  public:
44  RealtimeEndpointInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
51  inline int GetPeakRequestsPerSecond() const{ return m_peakRequestsPerSecond; }
52 
57  inline void SetPeakRequestsPerSecond(int value) { m_peakRequestsPerSecondHasBeenSet = true; m_peakRequestsPerSecond = value; }
58 
63  inline RealtimeEndpointInfo& WithPeakRequestsPerSecond(int value) { SetPeakRequestsPerSecond(value); return *this;}
64 
69  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
70 
75  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
76 
81  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
82 
87  inline RealtimeEndpointInfo& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
88 
93  inline RealtimeEndpointInfo& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(value); return *this;}
94 
100  inline const Aws::String& GetEndpointUrl() const{ return m_endpointUrl; }
101 
107  inline void SetEndpointUrl(const Aws::String& value) { m_endpointUrlHasBeenSet = true; m_endpointUrl = value; }
108 
114  inline void SetEndpointUrl(Aws::String&& value) { m_endpointUrlHasBeenSet = true; m_endpointUrl = value; }
115 
121  inline void SetEndpointUrl(const char* value) { m_endpointUrlHasBeenSet = true; m_endpointUrl.assign(value); }
122 
128  inline RealtimeEndpointInfo& WithEndpointUrl(const Aws::String& value) { SetEndpointUrl(value); return *this;}
129 
135  inline RealtimeEndpointInfo& WithEndpointUrl(Aws::String&& value) { SetEndpointUrl(value); return *this;}
136 
142  inline RealtimeEndpointInfo& WithEndpointUrl(const char* value) { SetEndpointUrl(value); return *this;}
143 
152  inline const RealtimeEndpointStatus& GetEndpointStatus() const{ return m_endpointStatus; }
153 
162  inline void SetEndpointStatus(const RealtimeEndpointStatus& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = value; }
163 
172  inline void SetEndpointStatus(RealtimeEndpointStatus&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = value; }
173 
182  inline RealtimeEndpointInfo& WithEndpointStatus(const RealtimeEndpointStatus& value) { SetEndpointStatus(value); return *this;}
183 
192  inline RealtimeEndpointInfo& WithEndpointStatus(RealtimeEndpointStatus&& value) { SetEndpointStatus(value); return *this;}
193 
194  private:
195  int m_peakRequestsPerSecond;
196  bool m_peakRequestsPerSecondHasBeenSet;
197  Aws::Utils::DateTime m_createdAt;
198  bool m_createdAtHasBeenSet;
199  Aws::String m_endpointUrl;
200  bool m_endpointUrlHasBeenSet;
201  RealtimeEndpointStatus m_endpointStatus;
202  bool m_endpointStatusHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace MachineLearning
207 } // namespace Aws
RealtimeEndpointInfo & WithEndpointUrl(Aws::String &&value)
RealtimeEndpointInfo & WithEndpointUrl(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
RealtimeEndpointInfo & WithEndpointUrl(const char *value)
RealtimeEndpointInfo & WithEndpointStatus(const RealtimeEndpointStatus &value)
RealtimeEndpointInfo & WithPeakRequestsPerSecond(int value)
const RealtimeEndpointStatus & GetEndpointStatus() const
RealtimeEndpointInfo & WithCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
RealtimeEndpointInfo & WithEndpointStatus(RealtimeEndpointStatus &&value)
RealtimeEndpointInfo & WithCreatedAt(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetEndpointStatus(RealtimeEndpointStatus &&value)
#define AWS_MACHINELEARNING_API
JSON (JavaScript Object Notation).
void SetEndpointStatus(const RealtimeEndpointStatus &value)