com.enonic.xp.issue.PublishRequestIssueSchedule Maven / Gradle / Ivy
The newest version!
package com.enonic.xp.issue;
import java.time.Instant;
public class PublishRequestIssueSchedule
{
private final Instant from;
private final Instant to;
private PublishRequestIssueSchedule( Builder builder )
{
from = builder.from;
to = builder.to;
}
public Instant getFrom()
{
return from;
}
public Instant getTo()
{
return to;
}
public static PublishRequestIssueSchedule.Builder create()
{
return new Builder();
}
public static class Builder
{
private Instant from;
private Instant to;
private Builder()
{
}
public Builder from( final Instant from )
{
this.from = from;
return this;
}
public Builder to( final Instant to )
{
this.to = to;
return this;
}
public PublishRequestIssueSchedule build()
{
return new PublishRequestIssueSchedule( this );
}
}
}