com.treasuredata.client.model.TDApiKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of td-client Show documentation
Show all versions of td-client Show documentation
Treasure Data Client for Java.
package com.treasuredata.client.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.immutables.value.Value;
@Value.Immutable
@Value.Style(visibility = Value.Style.ImplementationVisibility.PACKAGE)
@JsonSerialize(as = ImmutableTDApiKey.class)
@JsonDeserialize(as = ImmutableTDApiKey.class)
public abstract class TDApiKey
{
@JsonProperty("key_type") public abstract String getKeyType();
@JsonProperty("account_id") public abstract Integer getAccountId();
@JsonProperty("user_id") public abstract Integer getUserId();
@JsonProperty("administrator") public abstract boolean isAdministrator();
public interface Builder
{
Builder keyType(String keyType);
Builder accountId(Integer accountId);
Builder userId(Integer userId);
Builder isAdministrator(boolean administrator);
TDApiKey build();
}
public static Builder builder()
{
return ImmutableTDApiKey.builder();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy