AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
49 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
50 inline ServiceAccountTokenSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
51 inline ServiceAccountTokenSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(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 inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; }
61 inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::move(value); }
62 inline ServiceAccountTokenSummary& WithExpiresAt(const Aws::Utils::DateTime& value) { SetExpiresAt(value); return *this;}
63 inline ServiceAccountTokenSummary& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetId() const{ return m_id; }
71 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
72 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
73 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
74 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
75 inline ServiceAccountTokenSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
76 inline ServiceAccountTokenSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 inline ServiceAccountTokenSummary& WithId(const char* value) { SetId(value); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetLastUsedAt() const{ return m_lastUsedAt; }
85 inline bool LastUsedAtHasBeenSet() const { return m_lastUsedAtHasBeenSet; }
86 inline void SetLastUsedAt(const Aws::Utils::DateTime& value) { m_lastUsedAtHasBeenSet = true; m_lastUsedAt = value; }
87 inline void SetLastUsedAt(Aws::Utils::DateTime&& value) { m_lastUsedAtHasBeenSet = true; m_lastUsedAt = std::move(value); }
88 inline ServiceAccountTokenSummary& WithLastUsedAt(const Aws::Utils::DateTime& value) { SetLastUsedAt(value); return *this;}
89 inline ServiceAccountTokenSummary& WithLastUsedAt(Aws::Utils::DateTime&& value) { SetLastUsedAt(std::move(value)); return *this;}
91
93
96 inline const Aws::String& GetName() const{ return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
99 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
100 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
101 inline ServiceAccountTokenSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
102 inline ServiceAccountTokenSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
103 inline ServiceAccountTokenSummary& WithName(const char* value) { SetName(value); return *this;}
105 private:
106
107 Aws::Utils::DateTime m_createdAt;
108 bool m_createdAtHasBeenSet = false;
109
110 Aws::Utils::DateTime m_expiresAt;
111 bool m_expiresAtHasBeenSet = false;
112
113 Aws::String m_id;
114 bool m_idHasBeenSet = false;
115
116 Aws::Utils::DateTime m_lastUsedAt;
117 bool m_lastUsedAtHasBeenSet = false;
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace ManagedGrafana
125} // namespace Aws
ServiceAccountTokenSummary & WithId(const Aws::String &value)
ServiceAccountTokenSummary & WithExpiresAt(Aws::Utils::DateTime &&value)
ServiceAccountTokenSummary & WithName(const char *value)
AWS_MANAGEDGRAFANA_API ServiceAccountTokenSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceAccountTokenSummary & WithExpiresAt(const Aws::Utils::DateTime &value)
ServiceAccountTokenSummary & WithName(const Aws::String &value)
ServiceAccountTokenSummary & WithLastUsedAt(Aws::Utils::DateTime &&value)
ServiceAccountTokenSummary & WithId(const char *value)
ServiceAccountTokenSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
ServiceAccountTokenSummary & WithName(Aws::String &&value)
ServiceAccountTokenSummary & WithLastUsedAt(const Aws::Utils::DateTime &value)
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceAccountTokenSummary & WithId(Aws::String &&value)
ServiceAccountTokenSummary & WithCreatedAt(const Aws::Utils::DateTime &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