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

io.split.api.dtos.Environment Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package io.split.api.dtos;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Environment {
    private String id;
    private String name;

    private Environment() {

    }

    private Environment(Builder builder) {
        this.id = builder.id;
        this.name = builder.name;
    }

    @JsonProperty
    public String id() {
        return id;
    }

    @JsonProperty
    public String name() {
        return name;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

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

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

    public static class Builder {
        private String id;
        private String name;

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

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

        Builder() {
        }

        Builder(Environment prototype) {
            id = prototype.id;
            name = prototype.name;
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy