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

com.spotinst.sdkjava.model.bl.elastigroup.aws.BeanstalkPlatformUpdate Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

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

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BeanstalkPlatformUpdate {
    //region Members
    @JsonIgnore
    private Set        isSet;
    private Boolean            instanceRefreshEnabled;
    private String             performAt;
    private String             timeWindow;
    private String             updateLevel;
    //endregion

    //region Constructor

    private BeanstalkPlatformUpdate() {
        isSet = new HashSet<>();
    }
    //endregion

    //region Getters & Setters
    public Set getIsSet() {
        return isSet;
    }

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

    public Boolean getInstanceRefreshEnabled() {
        return instanceRefreshEnabled;
    }

    public void setInstanceRefreshEnabled(Boolean instanceRefreshEnabled) {
        isSet.add("instanceRefreshEnabled");
        this.instanceRefreshEnabled = instanceRefreshEnabled;
    }

    public String getPerformAt() {
        return performAt;
    }

    public void setPerformAt(String performAt) {
        isSet.add("performAt");
        this.performAt = performAt;
    }

    public String getTimeWindow() {
        return timeWindow;
    }

    public void setTimeWindow(String timeWindow) {
        isSet.add("timeWindow");
        this.timeWindow = timeWindow;
    }

    public String getUpdateLevel() {
        return updateLevel;
    }

    public void setUpdateLevel(String updateLevel) {
        isSet.add("updateLevel");
        this.updateLevel = updateLevel;
    }

    //endregion
    //region Builder class
    public static class Builder {
        private BeanstalkPlatformUpdate performUpdate;

        private Builder() {
            this.performUpdate = new BeanstalkPlatformUpdate();
        }

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

        public Builder setInstanceRefreshEnabled(final Boolean instanceRefreshEnabled) {
            performUpdate.setInstanceRefreshEnabled(instanceRefreshEnabled);
            return this;
        }

        public Builder setPerformAt(final String performAt) {
            performUpdate.setPerformAt(performAt);
            return this;
        }

        public Builder setTimeWindow(final String timeWindow) {
            performUpdate.setTimeWindow(timeWindow);
            return this;
        }

        public Builder setUpdateLevel(final String updateLevel) {
            performUpdate.setUpdateLevel(updateLevel);
            return this;
        }

        public BeanstalkPlatformUpdate build() {
            return performUpdate;
        }
    }
    //endregion

    //region isSet methods
    // Is instanceRefreshEnabled Set boolean method
    @JsonIgnore
    public boolean isInstanceRefreshEnabledSet() {
        return isSet.contains("instanceRefreshEnabled");
    }

    // Is performAt Set boolean method
    @JsonIgnore
    public boolean isPerformAtSet() {
        return isSet.contains("performAt");
    }

    // Is timeWindow Set boolean method
    @JsonIgnore
    public boolean isTimeWindowSet() {
        return isSet.contains("timeWindow");
    }

    // Is updateLevel Set boolean method
    @JsonIgnore
    public boolean isUpdateLevelSet() {
        return isSet.contains("updateLevel");
    }
    //endregion

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy