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

org.openl.rules.rest.model.ProjectLockInfo Maven / Gradle / Ivy

There is a newer version: 5.27.9
Show newest version
package org.openl.rules.rest.model;

import java.time.ZonedDateTime;

import io.swagger.v3.oas.annotations.Parameter;

public class ProjectLockInfo {

    @Parameter(description = "Locked by user", required = true)
    public final String lockedBy;

    @Parameter(description = "Locked date and time", required = true)
    public final ZonedDateTime lockedAt;

    private ProjectLockInfo(Builder builder) {
        this.lockedBy = builder.lockedBy;
        this.lockedAt = builder.lockedAt;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static class Builder {
        private String lockedBy;
        private ZonedDateTime lockedAt;

        public Builder lockedBy(String lockedBy) {
            this.lockedBy = lockedBy;
            return this;
        }

        public Builder lockedAt(ZonedDateTime lockedAt) {
            this.lockedAt = lockedAt;
            return this;
        }

        public ProjectLockInfo build() {
            return new ProjectLockInfo(this);
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy