AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
ServiceAccountTokenSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/grafana/ManagedGrafana_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ManagedGrafana {
21namespace Model {
22
30 public:
31 AWS_MANAGEDGRAFANA_API ServiceAccountTokenSummary() = default;
32 AWS_MANAGEDGRAFANA_API ServiceAccountTokenSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
77 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
78 template <typename CreatedAtT = Aws::Utils::DateTime>
79 void SetCreatedAt(CreatedAtT&& value) {
80 m_createdAtHasBeenSet = true;
81 m_createdAt = std::forward<CreatedAtT>(value);
82 }
83 template <typename CreatedAtT = Aws::Utils::DateTime>
85 SetCreatedAt(std::forward<CreatedAtT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
95 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
96 template <typename ExpiresAtT = Aws::Utils::DateTime>
97 void SetExpiresAt(ExpiresAtT&& value) {
98 m_expiresAtHasBeenSet = true;
99 m_expiresAt = std::forward<ExpiresAtT>(value);
100 }
101 template <typename ExpiresAtT = Aws::Utils::DateTime>
103 SetExpiresAt(std::forward<ExpiresAtT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetLastUsedAt() const { return m_lastUsedAt; }
113 inline bool LastUsedAtHasBeenSet() const { return m_lastUsedAtHasBeenSet; }
114 template <typename LastUsedAtT = Aws::Utils::DateTime>
115 void SetLastUsedAt(LastUsedAtT&& value) {
116 m_lastUsedAtHasBeenSet = true;
117 m_lastUsedAt = std::forward<LastUsedAtT>(value);
118 }
119 template <typename LastUsedAtT = Aws::Utils::DateTime>
121 SetLastUsedAt(std::forward<LastUsedAtT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_id;
127
128 Aws::String m_name;
129
130 Aws::Utils::DateTime m_createdAt{};
131
132 Aws::Utils::DateTime m_expiresAt{};
133
134 Aws::Utils::DateTime m_lastUsedAt{};
135 bool m_idHasBeenSet = false;
136 bool m_nameHasBeenSet = false;
137 bool m_createdAtHasBeenSet = false;
138 bool m_expiresAtHasBeenSet = false;
139 bool m_lastUsedAtHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace ManagedGrafana
144} // namespace Aws
ServiceAccountTokenSummary & WithCreatedAt(CreatedAtT &&value)
AWS_MANAGEDGRAFANA_API ServiceAccountTokenSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceAccountTokenSummary & WithExpiresAt(ExpiresAtT &&value)
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MANAGEDGRAFANA_API ServiceAccountTokenSummary()=default
ServiceAccountTokenSummary & WithLastUsedAt(LastUsedAtT &&value)
AWS_MANAGEDGRAFANA_API ServiceAccountTokenSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue