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

com.spotinst.sdkjava.model.bl.azure.elastiGroup.V3.RevertToSpotSpecAzure Maven / Gradle / Ivy

There is a newer version: 1.0.121
Show newest version
package com.spotinst.sdkjava.model.bl.azure.elastiGroup.V3;

import com.fasterxml.jackson.annotation.JsonIgnore;

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

public class RevertToSpotSpecAzure {
    // Partial Update support
    //region Members
    @JsonIgnore
    private Set isSet;
    private String      performAt;
    //endregion

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

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

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

    public String getPerformAt() {
        return performAt;
    }

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

    //region Builder class
    public static class Builder {
        private RevertToSpotSpecAzure revertTo;

        private Builder() {
            this.revertTo = new RevertToSpotSpecAzure();
        }

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

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

        public RevertToSpotSpecAzure build() {
            // TODO : Validations
            return revertTo;
        }
    }
    //endregion

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy