@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class PersonalAccessTokenCreateAttributes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_EXPIRES_AT |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_SCOPES |
boolean |
unparsed |
| Constructor and Description |
|---|
PersonalAccessTokenCreateAttributes() |
PersonalAccessTokenCreateAttributes(OffsetDateTime expiresAt,
String name,
List<String> scopes) |
| Modifier and Type | Method and Description |
|---|---|
PersonalAccessTokenCreateAttributes |
addScopesItem(String scopesItem) |
boolean |
equals(Object o)
Return true if this PersonalAccessTokenCreateAttributes object is equal to o.
|
PersonalAccessTokenCreateAttributes |
expiresAt(OffsetDateTime expiresAt) |
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
OffsetDateTime |
getExpiresAt()
Expiration date of the access token.
|
String |
getName()
Name of the access token.
|
List<String> |
getScopes()
Array of scopes to grant the access token.
|
int |
hashCode() |
PersonalAccessTokenCreateAttributes |
name(String name) |
PersonalAccessTokenCreateAttributes |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
PersonalAccessTokenCreateAttributes |
scopes(List<String> scopes) |
void |
setExpiresAt(OffsetDateTime expiresAt) |
void |
setName(String name) |
void |
setScopes(List<String> scopes) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_EXPIRES_AT
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_SCOPES
public PersonalAccessTokenCreateAttributes()
public PersonalAccessTokenCreateAttributes(OffsetDateTime expiresAt, String name, List<String> scopes)
public PersonalAccessTokenCreateAttributes expiresAt(OffsetDateTime expiresAt)
public OffsetDateTime getExpiresAt()
public void setExpiresAt(OffsetDateTime expiresAt)
public PersonalAccessTokenCreateAttributes name(String name)
public String getName()
public void setName(String name)
public PersonalAccessTokenCreateAttributes scopes(List<String> scopes)
public PersonalAccessTokenCreateAttributes addScopesItem(String scopesItem)
public List<String> getScopes()
public PersonalAccessTokenCreateAttributes 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.