@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class PersonalAccessTokenAttributes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_CREATED_AT |
static String |
JSON_PROPERTY_EXPIRES_AT |
static String |
JSON_PROPERTY_LAST_USED_AT |
static String |
JSON_PROPERTY_MODIFIED_AT |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_PUBLIC_PORTION |
static String |
JSON_PROPERTY_SCOPES |
boolean |
unparsed |
| Constructor and Description |
|---|
PersonalAccessTokenAttributes() |
| Modifier and Type | Method and Description |
|---|---|
PersonalAccessTokenAttributes |
addScopesItem(String scopesItem) |
boolean |
equals(Object o)
Return true if this PersonalAccessTokenAttributes object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
OffsetDateTime |
getCreatedAt()
Creation date of the access token.
|
org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> |
getExpiresAt_JsonNullable() |
OffsetDateTime |
getExpiresAt()
Expiration date of the access token.
|
org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> |
getLastUsedAt_JsonNullable() |
OffsetDateTime |
getLastUsedAt()
Date the access token was last used.
|
org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> |
getModifiedAt_JsonNullable() |
OffsetDateTime |
getModifiedAt()
Date of last modification of the access token.
|
String |
getName()
Name of the access token.
|
String |
getPublicPortion()
The public portion of the access token.
|
List<String> |
getScopes()
Array of scopes granted to the access token.
|
int |
hashCode() |
PersonalAccessTokenAttributes |
name(String name) |
PersonalAccessTokenAttributes |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
PersonalAccessTokenAttributes |
scopes(List<String> scopes) |
void |
setName(String name) |
void |
setScopes(List<String> scopes) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_EXPIRES_AT
public static final String JSON_PROPERTY_LAST_USED_AT
public static final String JSON_PROPERTY_MODIFIED_AT
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_PUBLIC_PORTION
public static final String JSON_PROPERTY_SCOPES
@Nullable public OffsetDateTime getCreatedAt()
@Nullable public OffsetDateTime getExpiresAt()
public org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> getExpiresAt_JsonNullable()
@Nullable public OffsetDateTime getLastUsedAt()
public org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> getLastUsedAt_JsonNullable()
@Nullable public OffsetDateTime getModifiedAt()
public org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> getModifiedAt_JsonNullable()
public PersonalAccessTokenAttributes name(String name)
@Nullable public String getName()
public void setName(String name)
@Nullable public String getPublicPortion()
public PersonalAccessTokenAttributes scopes(List<String> scopes)
public PersonalAccessTokenAttributes addScopesItem(String scopesItem)
@Nullable public List<String> getScopes()
public PersonalAccessTokenAttributes putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.