AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ServiceAccountTokenSummary.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ManagedGrafana
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MANAGEDGRAFANA_API ServiceAccountTokenSummary() = default;
37 AWS_MANAGEDGRAFANA_API ServiceAccountTokenSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
47 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
48 template<typename CreatedAtT = Aws::Utils::DateTime>
49 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
50 template<typename CreatedAtT = Aws::Utils::DateTime>
51 ServiceAccountTokenSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
53
55
58 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
59 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
60 template<typename ExpiresAtT = Aws::Utils::DateTime>
61 void SetExpiresAt(ExpiresAtT&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::forward<ExpiresAtT>(value); }
62 template<typename ExpiresAtT = Aws::Utils::DateTime>
63 ServiceAccountTokenSummary& WithExpiresAt(ExpiresAtT&& value) { SetExpiresAt(std::forward<ExpiresAtT>(value)); return *this;}
65
67
70 inline const Aws::String& GetId() const { return m_id; }
71 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
72 template<typename IdT = Aws::String>
73 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
74 template<typename IdT = Aws::String>
75 ServiceAccountTokenSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetLastUsedAt() const { return m_lastUsedAt; }
83 inline bool LastUsedAtHasBeenSet() const { return m_lastUsedAtHasBeenSet; }
84 template<typename LastUsedAtT = Aws::Utils::DateTime>
85 void SetLastUsedAt(LastUsedAtT&& value) { m_lastUsedAtHasBeenSet = true; m_lastUsedAt = std::forward<LastUsedAtT>(value); }
86 template<typename LastUsedAtT = Aws::Utils::DateTime>
87 ServiceAccountTokenSummary& WithLastUsedAt(LastUsedAtT&& value) { SetLastUsedAt(std::forward<LastUsedAtT>(value)); return *this;}
89
91
94 inline const Aws::String& GetName() const { return m_name; }
95 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 template<typename NameT = Aws::String>
97 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
98 template<typename NameT = Aws::String>
99 ServiceAccountTokenSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
101 private:
102
103 Aws::Utils::DateTime m_createdAt{};
104 bool m_createdAtHasBeenSet = false;
105
106 Aws::Utils::DateTime m_expiresAt{};
107 bool m_expiresAtHasBeenSet = false;
108
109 Aws::String m_id;
110 bool m_idHasBeenSet = false;
111
112 Aws::Utils::DateTime m_lastUsedAt{};
113 bool m_lastUsedAtHasBeenSet = false;
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ManagedGrafana
121} // 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