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

com.spotinst.sdkjava.model.bl.ocean.kubernetes.InitiateRollProgress Maven / Gradle / Ivy

There is a newer version: 1.0.121
Show newest version
package com.spotinst.sdkjava.model.bl.ocean.kubernetes;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.HashSet;
import java.util.Set;

public class InitiateRollProgress {
    @JsonIgnore
    private Set                                 isSet;
    private String                                        unit;
    private Integer                                      value;
    private InitiateRollDetailedStatus          detailedStatus;

    private InitiateRollProgress() {
        isSet = new HashSet<>();
    }

    public Set getIsSet() {
        return isSet;
    }

    public void setIsSet(Set isSet) {
        this.isSet = isSet;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        isSet.add("unit");
        this.unit = unit;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        isSet.add("value");
        this.value = value;
    }

    public InitiateRollDetailedStatus getDetailedStatus() {
        return detailedStatus;
    }

    public void setDetailedStatus(InitiateRollDetailedStatus detailedStatus) {
        isSet.add("detailedStatus");
        this.detailedStatus = detailedStatus;
    }

    public static class Builder {
        private InitiateRollProgress initiateRollProgress;

        private Builder() {
            this.initiateRollProgress = new InitiateRollProgress();
        }

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

        public Builder setUnit(final String unit) {
            initiateRollProgress.setUnit(unit);
            return this;
        }

        public Builder setValue(final Integer value) {
            initiateRollProgress.setValue(value);
            return this;
        }

        public Builder setDetailedStatus(final InitiateRollDetailedStatus detailedStatus) {
            initiateRollProgress.setDetailedStatus(detailedStatus);
            return this;
        }

        public InitiateRollProgress build() {
            return initiateRollProgress;
        }
    }

    @JsonIgnore
    public boolean isUnitSet() {
        return isSet.contains("unit");
    }

    @JsonIgnore
    public boolean isValueSet() {
        return isSet.contains("value");
    }

    @JsonIgnore
    public boolean isDetailedStatusSet() {
        return isSet.contains("detailedStatus");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy