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>
50 inline void SetPersonalAccessTokenId(
const char* value) { m_personalAccessTokenIdHasBeenSet =
true; m_personalAccessTokenId.assign(value); }
65 inline void SetUserId(
const char* value) { m_userIdHasBeenSet =
true; m_userId.assign(value); }
79 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
138 bool m_personalAccessTokenIdHasBeenSet =
false;
141 bool m_userIdHasBeenSet =
false;
144 bool m_nameHasBeenSet =
false;
147 bool m_dateCreatedHasBeenSet =
false;
150 bool m_dateLastUsedHasBeenSet =
false;
153 bool m_expiresTimeHasBeenSet =
false;
156 bool m_scopesHasBeenSet =
false;
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)
bool NameHasBeenSet() const
void SetName(Aws::String &&value)
AWS_WORKMAIL_API PersonalAccessTokenSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PersonalAccessTokenSummary & WithUserId(const Aws::String &value)
void SetName(const Aws::String &value)
PersonalAccessTokenSummary & WithExpiresTime(Aws::Utils::DateTime &&value)
void SetScopes(const Aws::Vector< Aws::String > &value)
bool DateLastUsedHasBeenSet() const
const Aws::String & GetPersonalAccessTokenId() const
void SetExpiresTime(const Aws::Utils::DateTime &value)
AWS_WORKMAIL_API PersonalAccessTokenSummary()
PersonalAccessTokenSummary & AddScopes(const Aws::String &value)
const Aws::Utils::DateTime & GetDateCreated() const
const Aws::Vector< Aws::String > & GetScopes() const
void SetDateCreated(Aws::Utils::DateTime &&value)
bool DateCreatedHasBeenSet() const
AWS_WORKMAIL_API PersonalAccessTokenSummary(Aws::Utils::Json::JsonView jsonValue)
PersonalAccessTokenSummary & WithPersonalAccessTokenId(const char *value)
void SetUserId(Aws::String &&value)
void SetDateLastUsed(Aws::Utils::DateTime &&value)
bool UserIdHasBeenSet() const
void SetExpiresTime(Aws::Utils::DateTime &&value)
PersonalAccessTokenSummary & WithName(Aws::String &&value)
PersonalAccessTokenSummary & WithName(const Aws::String &value)
bool ScopesHasBeenSet() const
bool ExpiresTimeHasBeenSet() const
void SetUserId(const Aws::String &value)
bool PersonalAccessTokenIdHasBeenSet() const
void SetDateLastUsed(const Aws::Utils::DateTime &value)
void SetUserId(const char *value)
PersonalAccessTokenSummary & AddScopes(Aws::String &&value)
const Aws::Utils::DateTime & GetDateLastUsed() const
void SetName(const char *value)
PersonalAccessTokenSummary & AddScopes(const char *value)
PersonalAccessTokenSummary & WithPersonalAccessTokenId(Aws::String &&value)
void SetScopes(Aws::Vector< Aws::String > &&value)
void SetPersonalAccessTokenId(const Aws::String &value)
PersonalAccessTokenSummary & WithDateCreated(Aws::Utils::DateTime &&value)
PersonalAccessTokenSummary & WithUserId(Aws::String &&value)
PersonalAccessTokenSummary & WithDateCreated(const Aws::Utils::DateTime &value)
void SetPersonalAccessTokenId(Aws::String &&value)
const Aws::String & GetName() const
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetUserId() const
void SetPersonalAccessTokenId(const char *value)
const Aws::Utils::DateTime & GetExpiresTime() 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