com.treasuredata.client.model.TDBulkLoadSessionStartRequest 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.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Optional;
public class TDBulkLoadSessionStartRequest
{
private final String scheduledTime;
private final String domainKey;
@JsonCreator
TDBulkLoadSessionStartRequest(
@JsonProperty("scheduled_time") String scheduledTime,
@JsonProperty("domain_key") String domainKey
)
{
this.scheduledTime = scheduledTime;
this.domainKey = domainKey;
}
TDBulkLoadSessionStartRequest(TDBulkLoadSessionStartRequestBuilder builder)
{
this.scheduledTime = builder.getScheduledTime().orNull();
this.domainKey = builder.getDomainKey().orNull();
}
@JsonProperty("scheduled_time")
public Optional getScheduledTime()
{
return Optional.fromNullable(scheduledTime);
}
@JsonProperty("domain_key")
public Optional getDomainKey()
{
return Optional.fromNullable(domainKey);
}
@Override
public boolean equals(Object o)
{
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TDBulkLoadSessionStartRequest that = (TDBulkLoadSessionStartRequest) o;
return scheduledTime != null ? scheduledTime.equals(that.scheduledTime) : that.scheduledTime == null;
}
@Override
public int hashCode()
{
return scheduledTime != null ? scheduledTime.hashCode() : 0;
}
@Override
public String toString()
{
return "TDBulkLoadSessionStartRequest{" +
"scheduledTime='" + scheduledTime + '\'' +
", domainKey='" + domainKey + '\'' +
'}';
}
public static TDBulkLoadSessionStartRequestBuilder builder()
{
return new TDBulkLoadSessionStartRequestBuilder();
}
public static TDBulkLoadSessionStartRequest of()
{
return builder().build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy