AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ClientStat.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EKS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EKS_API ClientStat() = default;
37 AWS_EKS_API ClientStat(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
47 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
48 template<typename UserAgentT = Aws::String>
49 void SetUserAgent(UserAgentT&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::forward<UserAgentT>(value); }
50 template<typename UserAgentT = Aws::String>
51 ClientStat& WithUserAgent(UserAgentT&& value) { SetUserAgent(std::forward<UserAgentT>(value)); return *this;}
53
55
59 inline int GetNumberOfRequestsLast30Days() const { return m_numberOfRequestsLast30Days; }
60 inline bool NumberOfRequestsLast30DaysHasBeenSet() const { return m_numberOfRequestsLast30DaysHasBeenSet; }
61 inline void SetNumberOfRequestsLast30Days(int value) { m_numberOfRequestsLast30DaysHasBeenSet = true; m_numberOfRequestsLast30Days = value; }
64
66
69 inline const Aws::Utils::DateTime& GetLastRequestTime() const { return m_lastRequestTime; }
70 inline bool LastRequestTimeHasBeenSet() const { return m_lastRequestTimeHasBeenSet; }
71 template<typename LastRequestTimeT = Aws::Utils::DateTime>
72 void SetLastRequestTime(LastRequestTimeT&& value) { m_lastRequestTimeHasBeenSet = true; m_lastRequestTime = std::forward<LastRequestTimeT>(value); }
73 template<typename LastRequestTimeT = Aws::Utils::DateTime>
74 ClientStat& WithLastRequestTime(LastRequestTimeT&& value) { SetLastRequestTime(std::forward<LastRequestTimeT>(value)); return *this;}
76 private:
77
78 Aws::String m_userAgent;
79 bool m_userAgentHasBeenSet = false;
80
81 int m_numberOfRequestsLast30Days{0};
82 bool m_numberOfRequestsLast30DaysHasBeenSet = false;
83
84 Aws::Utils::DateTime m_lastRequestTime{};
85 bool m_lastRequestTimeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace EKS
90} // namespace Aws
const Aws::String & GetUserAgent() const
Definition ClientStat.h:46
ClientStat & WithLastRequestTime(LastRequestTimeT &&value)
Definition ClientStat.h:74
bool LastRequestTimeHasBeenSet() const
Definition ClientStat.h:70
bool UserAgentHasBeenSet() const
Definition ClientStat.h:47
AWS_EKS_API ClientStat()=default
void SetUserAgent(UserAgentT &&value)
Definition ClientStat.h:49
ClientStat & WithNumberOfRequestsLast30Days(int value)
Definition ClientStat.h:62
AWS_EKS_API ClientStat(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API ClientStat & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastRequestTime(LastRequestTimeT &&value)
Definition ClientStat.h:72
bool NumberOfRequestsLast30DaysHasBeenSet() const
Definition ClientStat.h:60
ClientStat & WithUserAgent(UserAgentT &&value)
Definition ClientStat.h:51
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastRequestTime() const
Definition ClientStat.h:69
void SetNumberOfRequestsLast30Days(int value)
Definition ClientStat.h:61
int GetNumberOfRequestsLast30Days() const
Definition ClientStat.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue