AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PersonalAccessTokenSummary.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkMail
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_WORKMAIL_API PersonalAccessTokenSummary();
39 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetPersonalAccessTokenId() const{ return m_personalAccessTokenId; }
47 inline bool PersonalAccessTokenIdHasBeenSet() const { return m_personalAccessTokenIdHasBeenSet; }
48 inline void SetPersonalAccessTokenId(const Aws::String& value) { m_personalAccessTokenIdHasBeenSet = true; m_personalAccessTokenId = value; }
49 inline void SetPersonalAccessTokenId(Aws::String&& value) { m_personalAccessTokenIdHasBeenSet = true; m_personalAccessTokenId = std::move(value); }
50 inline void SetPersonalAccessTokenId(const char* value) { m_personalAccessTokenIdHasBeenSet = true; m_personalAccessTokenId.assign(value); }
53 inline PersonalAccessTokenSummary& WithPersonalAccessTokenId(const char* value) { SetPersonalAccessTokenId(value); return *this;}
55
57
61 inline const Aws::String& GetUserId() const{ return m_userId; }
62 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
63 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
64 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
65 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
66 inline PersonalAccessTokenSummary& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
67 inline PersonalAccessTokenSummary& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
68 inline PersonalAccessTokenSummary& WithUserId(const char* value) { SetUserId(value); return *this;}
70
72
75 inline const Aws::String& GetName() const{ return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
78 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
79 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
80 inline PersonalAccessTokenSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
81 inline PersonalAccessTokenSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82 inline PersonalAccessTokenSummary& WithName(const char* value) { SetName(value); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; }
90 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
91 inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
92 inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
94 inline PersonalAccessTokenSummary& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetDateLastUsed() const{ return m_dateLastUsed; }
102 inline bool DateLastUsedHasBeenSet() const { return m_dateLastUsedHasBeenSet; }
103 inline void SetDateLastUsed(const Aws::Utils::DateTime& value) { m_dateLastUsedHasBeenSet = true; m_dateLastUsed = value; }
104 inline void SetDateLastUsed(Aws::Utils::DateTime&& value) { m_dateLastUsedHasBeenSet = true; m_dateLastUsed = std::move(value); }
106 inline PersonalAccessTokenSummary& WithDateLastUsed(Aws::Utils::DateTime&& value) { SetDateLastUsed(std::move(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetExpiresTime() const{ return m_expiresTime; }
114 inline bool ExpiresTimeHasBeenSet() const { return m_expiresTimeHasBeenSet; }
115 inline void SetExpiresTime(const Aws::Utils::DateTime& value) { m_expiresTimeHasBeenSet = true; m_expiresTime = value; }
116 inline void SetExpiresTime(Aws::Utils::DateTime&& value) { m_expiresTimeHasBeenSet = true; m_expiresTime = std::move(value); }
118 inline PersonalAccessTokenSummary& WithExpiresTime(Aws::Utils::DateTime&& value) { SetExpiresTime(std::move(value)); return *this;}
120
122
125 inline const Aws::Vector<Aws::String>& GetScopes() const{ return m_scopes; }
126 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
127 inline void SetScopes(const Aws::Vector<Aws::String>& value) { m_scopesHasBeenSet = true; m_scopes = value; }
128 inline void SetScopes(Aws::Vector<Aws::String>&& value) { m_scopesHasBeenSet = true; m_scopes = std::move(value); }
129 inline PersonalAccessTokenSummary& WithScopes(const Aws::Vector<Aws::String>& value) { SetScopes(value); return *this;}
130 inline PersonalAccessTokenSummary& WithScopes(Aws::Vector<Aws::String>&& value) { SetScopes(std::move(value)); return *this;}
131 inline PersonalAccessTokenSummary& AddScopes(const Aws::String& value) { m_scopesHasBeenSet = true; m_scopes.push_back(value); return *this; }
132 inline PersonalAccessTokenSummary& AddScopes(Aws::String&& value) { m_scopesHasBeenSet = true; m_scopes.push_back(std::move(value)); return *this; }
133 inline PersonalAccessTokenSummary& AddScopes(const char* value) { m_scopesHasBeenSet = true; m_scopes.push_back(value); return *this; }
135 private:
136
137 Aws::String m_personalAccessTokenId;
138 bool m_personalAccessTokenIdHasBeenSet = false;
139
140 Aws::String m_userId;
141 bool m_userIdHasBeenSet = false;
142
143 Aws::String m_name;
144 bool m_nameHasBeenSet = false;
145
146 Aws::Utils::DateTime m_dateCreated;
147 bool m_dateCreatedHasBeenSet = false;
148
149 Aws::Utils::DateTime m_dateLastUsed;
150 bool m_dateLastUsedHasBeenSet = false;
151
152 Aws::Utils::DateTime m_expiresTime;
153 bool m_expiresTimeHasBeenSet = false;
154
156 bool m_scopesHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace WorkMail
161} // namespace Aws
PersonalAccessTokenSummary & WithPersonalAccessTokenId(const Aws::String &value)
PersonalAccessTokenSummary & WithDateLastUsed(const Aws::Utils::DateTime &value)
PersonalAccessTokenSummary & WithExpiresTime(const Aws::Utils::DateTime &value)
PersonalAccessTokenSummary & WithScopes(Aws::Vector< Aws::String > &&value)
PersonalAccessTokenSummary & WithScopes(const Aws::Vector< Aws::String > &value)
void SetDateCreated(const Aws::Utils::DateTime &value)
PersonalAccessTokenSummary & WithDateLastUsed(Aws::Utils::DateTime &&value)
PersonalAccessTokenSummary & WithName(const char *value)
AWS_WORKMAIL_API PersonalAccessTokenSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PersonalAccessTokenSummary & WithUserId(const Aws::String &value)
PersonalAccessTokenSummary & WithExpiresTime(Aws::Utils::DateTime &&value)
void SetScopes(const Aws::Vector< Aws::String > &value)
void SetExpiresTime(const Aws::Utils::DateTime &value)
PersonalAccessTokenSummary & AddScopes(const Aws::String &value)
const Aws::Vector< Aws::String > & GetScopes() const
AWS_WORKMAIL_API PersonalAccessTokenSummary(Aws::Utils::Json::JsonView jsonValue)
PersonalAccessTokenSummary & WithPersonalAccessTokenId(const char *value)
PersonalAccessTokenSummary & WithName(Aws::String &&value)
PersonalAccessTokenSummary & WithName(const Aws::String &value)
void SetDateLastUsed(const Aws::Utils::DateTime &value)
PersonalAccessTokenSummary & AddScopes(Aws::String &&value)
PersonalAccessTokenSummary & AddScopes(const char *value)
PersonalAccessTokenSummary & WithPersonalAccessTokenId(Aws::String &&value)
void SetScopes(Aws::Vector< Aws::String > &&value)
PersonalAccessTokenSummary & WithDateCreated(Aws::Utils::DateTime &&value)
PersonalAccessTokenSummary & WithUserId(Aws::String &&value)
PersonalAccessTokenSummary & WithDateCreated(const Aws::Utils::DateTime &value)
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
PersonalAccessTokenSummary & WithUserId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue