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

com.spotinst.sdkjava.model.bl.ocean.ecs.ImportOceanEcsClusterResponse Maven / Gradle / Ivy

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

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;

/**
 * Created by Bansi Chapla on 20/07/2021.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ImportOceanEcsClusterResponse {

    @JsonIgnore
    private Set                            isSet;
    private String                                 name;
    private String                                 region;
    private String                                 clusterName;
    private ImportClusterResponseComputeConfiguration compute;

    private ImportOceanEcsClusterResponse() {
        isSet = new HashSet<>();
    }

    public Set getIsSet() {
        return isSet;
    }

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

    public String getName() {
        return name;
    }

    public void setName(String name) {
        isSet.add("name");
        this.name = name;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        isSet.add("region");
        this.region = region;
    }

    public String getClusterName() {
        return clusterName;
    }

    public void setclusterName(String clusterName) {
        isSet.add("clusterName");
        this.clusterName = clusterName;
    }

    public ImportClusterResponseComputeConfiguration getCompute() {
        return compute;
    }

    public void setCompute(ImportClusterResponseComputeConfiguration compute) {
        isSet.add("compute");
        this.compute = compute;
    }

    public static class Builder {
        private ImportOceanEcsClusterResponse cluster;

        private Builder() {
            this.cluster = new ImportOceanEcsClusterResponse();
        }

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

        public Builder setName(final String name) {
            cluster.setName(name);
            return this;
        }
        public Builder setRegion(final String region) {
            cluster.setRegion(region);
            return this;
        }
        public Builder setClusterName(final String clusterName) {
            cluster.setclusterName(clusterName);
            return this;
        }
        public Builder setCompute(final ImportClusterResponseComputeConfiguration compute) {
            cluster.setCompute(compute);
            return this;
        }

        public ImportOceanEcsClusterResponse build() {
            // Validations
            return cluster;
        }
    }

    @JsonIgnore
    public boolean isNameSet() {
        return isSet.contains("name");
    }

    @JsonIgnore
    public boolean isClusterNameSet() {
        return isSet.contains("clusterName");
    }

    @JsonIgnore
    public boolean isRegionSet() {
        return isSet.contains("region");
    }

    @JsonIgnore
    public boolean isComputeSet() {
        return isSet.contains("compute");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy