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

com.spotinst.sdkjava.model.requests.azure.statefulNode.StatefulNodeStateChangeRequest Maven / Gradle / Ivy

There is a newer version: 1.0.121
Show newest version
package com.spotinst.sdkjava.model.requests.azure.statefulNode;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.spotinst.sdkjava.enums.azure.statefulNode.AzureStatefulNodeStateEnum;

import java.util.Set;

public class StatefulNodeStateChangeRequest {

    private Set                isSet;
    private  AzureStatefulNodeStateEnum state;

    private StatefulNodeStateChangeRequest() {

    }

    public Set getIsSet() {
        return isSet;
    }

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

    public AzureStatefulNodeStateEnum getState() {
        return state;
    }

    public void setState(AzureStatefulNodeStateEnum state) {
        this.state = state;
    }

    //region Builder class
    public static class Builder {
        private StatefulNodeStateChangeRequest nodeStateRequest;

        private Builder() {
            this.nodeStateRequest = new StatefulNodeStateChangeRequest();
        }

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

        public Builder setState(final AzureStatefulNodeStateEnum state) {
            nodeStateRequest.setState(state);
            return this;
        }

        public StatefulNodeStateChangeRequest build() {
            return nodeStateRequest;
        }

    }

    @JsonIgnore
    public boolean isStateSet() {
        return isSet.contains("state");
    }
    //endregion
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy