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

com.spotinst.sdkjava.model.bl.ocean.ecs.ImportEcsCluster 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 java.util.HashSet;
import java.util.Set;

public class ImportEcsCluster {
    @JsonIgnore
    private Set     isSet;
    private String          name;
    private String			region;

    private ImportEcsCluster() {
        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 static class Builder {
        private ImportEcsCluster cluster;

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

        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 ImportEcsCluster build() {
            // Validations
            return cluster;
        }
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy