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

com.spotinst.sdkjava.model.api.gcp.ApiElastigroupScaleUpNewInstancesGcp Maven / Gradle / Ivy

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

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 ApiElastigroupScaleUpNewInstancesGcp {

    @JsonIgnore
    private Set isSet;
    private String      instanceName;


    public ApiElastigroupScaleUpNewInstancesGcp() {
        isSet = new HashSet<>();
    }

    public Set getIsSet() {
        return isSet;
    }

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

    public String getInstanceName() {
        return instanceName;
    }

    public void setInstanceName(String instanceName) {
        isSet.add("instanceName");
        this.instanceName = instanceName;
    }
    public static class Builder {
        private ApiElastigroupScaleUpNewInstancesGcp apiElastigroupScaleUpNewInstancesGcp;

        private Builder() {
            this.apiElastigroupScaleUpNewInstancesGcp = new ApiElastigroupScaleUpNewInstancesGcp();
        }

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

        public Builder setInstanceName(final String instanceName) {
            apiElastigroupScaleUpNewInstancesGcp.setInstanceName(instanceName);
            return this;
        }


        public ApiElastigroupScaleUpNewInstancesGcp build() {
            return apiElastigroupScaleUpNewInstancesGcp;
        }

    }

    @JsonIgnore
    public boolean isInstanceNameSet() {
        return isSet.contains("instanceName");
    }



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy