AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ClientStat.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/EKS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EKS {
21namespace Model {
22
30 public:
31 AWS_EKS_API ClientStat() = default;
32 AWS_EKS_API ClientStat(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
41 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
42 template <typename UserAgentT = Aws::String>
43 void SetUserAgent(UserAgentT&& value) {
44 m_userAgentHasBeenSet = true;
45 m_userAgent = std::forward<UserAgentT>(value);
46 }
47 template <typename UserAgentT = Aws::String>
48 ClientStat& WithUserAgent(UserAgentT&& value) {
49 SetUserAgent(std::forward<UserAgentT>(value));
50 return *this;
51 }
53
55
59 inline int GetNumberOfRequestsLast30Days() const { return m_numberOfRequestsLast30Days; }
60 inline bool NumberOfRequestsLast30DaysHasBeenSet() const { return m_numberOfRequestsLast30DaysHasBeenSet; }
61 inline void SetNumberOfRequestsLast30Days(int value) {
62 m_numberOfRequestsLast30DaysHasBeenSet = true;
63 m_numberOfRequestsLast30Days = value;
64 }
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetLastRequestTime() const { return m_lastRequestTime; }
76 inline bool LastRequestTimeHasBeenSet() const { return m_lastRequestTimeHasBeenSet; }
77 template <typename LastRequestTimeT = Aws::Utils::DateTime>
78 void SetLastRequestTime(LastRequestTimeT&& value) {
79 m_lastRequestTimeHasBeenSet = true;
80 m_lastRequestTime = std::forward<LastRequestTimeT>(value);
81 }
82 template <typename LastRequestTimeT = Aws::Utils::DateTime>
83 ClientStat& WithLastRequestTime(LastRequestTimeT&& value) {
84 SetLastRequestTime(std::forward<LastRequestTimeT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_userAgent;
90
91 int m_numberOfRequestsLast30Days{0};
92
93 Aws::Utils::DateTime m_lastRequestTime{};
94 bool m_userAgentHasBeenSet = false;
95 bool m_numberOfRequestsLast30DaysHasBeenSet = false;
96 bool m_lastRequestTimeHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace EKS
101} // namespace Aws
const Aws::String & GetUserAgent() const
Definition ClientStat.h:40
ClientStat & WithLastRequestTime(LastRequestTimeT &&value)
Definition ClientStat.h:83
bool LastRequestTimeHasBeenSet() const
Definition ClientStat.h:76
bool UserAgentHasBeenSet() const
Definition ClientStat.h:41
AWS_EKS_API ClientStat()=default
void SetUserAgent(UserAgentT &&value)
Definition ClientStat.h:43
ClientStat & WithNumberOfRequestsLast30Days(int value)
Definition ClientStat.h:65
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:78
bool NumberOfRequestsLast30DaysHasBeenSet() const
Definition ClientStat.h:60
ClientStat & WithUserAgent(UserAgentT &&value)
Definition ClientStat.h:48
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastRequestTime() const
Definition ClientStat.h:75
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