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

com.spotinst.sdkjava.model.bl.elastigroup.gcp.ElastigroupRevertToPreemptibleGcp Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.spotinst.sdkjava.enums.PerformAtEnumGcp;

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

public class ElastigroupRevertToPreemptibleGcp {
    //region Members
    @JsonIgnore
    private Set      isSet;
    private PerformAtEnumGcp performAt;
    //endregion

    //region Constructors
    private ElastigroupRevertToPreemptibleGcp() {
        isSet = new HashSet<>();
    }
    //endregion

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

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

    //region performAt
    public PerformAtEnumGcp getPerformAt() {
        return performAt;
    }

    public void setPerformAt(PerformAtEnumGcp performAt) {
        isSet.add("performAt");
        this.performAt = performAt;
    }
    //endregion

    //region Builder class
    public static class Builder {
        private ElastigroupRevertToPreemptibleGcp instanceTypes;

        private Builder() {
            this.instanceTypes = new ElastigroupRevertToPreemptibleGcp();
        }

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

        public Builder setPerformAt(final PerformAtEnumGcp performAt) {
            instanceTypes.setPerformAt(performAt);
            return this;
        }

        public ElastigroupRevertToPreemptibleGcp build() {
            return instanceTypes;
        }
    }
    //endregion

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy