Class FullPersonalAccessTokenAttributes

java.lang.Object
com.datadog.api.client.v2.model.FullPersonalAccessTokenAttributes

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class FullPersonalAccessTokenAttributes extends Object
Attributes of a full access token, including the token key.
  • Field Details

  • Constructor Details

    • FullPersonalAccessTokenAttributes

      public FullPersonalAccessTokenAttributes()
  • Method Details

    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Creation date of the access token.
      Returns:
      createdAt
    • getExpiresAt

      @Nullable public OffsetDateTime getExpiresAt()
      Expiration date of the access token.
      Returns:
      expiresAt
    • getExpiresAt_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> getExpiresAt_JsonNullable()
    • getKey

      @Nullable public String getKey()
      The access token key. Only returned upon creation.
      Returns:
      key
    • name

    • getName

      @Nullable public String getName()
      Name of the access token.
      Returns:
      name
    • setName

      public void setName(String name)
    • getPublicPortion

      @Nullable public String getPublicPortion()
      The public portion of the access token.
      Returns:
      publicPortion
    • scopes

    • addScopesItem

      public FullPersonalAccessTokenAttributes addScopesItem(String scopesItem)
    • getScopes

      @Nullable public List<String> getScopes()
      Array of scopes granted to the access token.
      Returns:
      scopes
    • setScopes

      public void setScopes(List<String> scopes)
    • putAdditionalProperty

      public FullPersonalAccessTokenAttributes putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      FullPersonalAccessTokenAttributes
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this FullPersonalAccessTokenAttributes object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object