All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 );
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy