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

com.spotinst.sdkjava.model.bl.ocean.ecs.ClusterLaunchSpecification 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.List;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ClusterLaunchSpecification {
    @JsonIgnore
    private Set                               isSet;
    private List                   attributes;
    private LaunchSpecAutoScaleSpecification          autoScale;
    private List       blockDeviceMappings;
    private LaunchSpecIamInstanceProfileSpecification iamInstanceProfile;
    private String                                    imageId;
    private LaunchSpecInstanceMetadataOptions         instanceMetadataOptions;
    private String                                    name;
    private String                                    oceanId;
    private Boolean                                   restrictScaleDown;
    private List                              securityGroupIds;
    private List                              subnetIds;
    private List         tags;
    private String                                    userData;
    private String                                    id;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public List getAttributes() {
        return attributes;
    }

    public void setAttributes(List attributes) {
        isSet.add("attributes");
        this.attributes = attributes;
    }

    public LaunchSpecAutoScaleSpecification getAutoScale() {
        return autoScale;
    }

    public void setAutoScale(LaunchSpecAutoScaleSpecification autoScale) {
        isSet.add("autoScale");
        this.autoScale = autoScale;
    }

    public List getBlockDeviceMappings() {
        return blockDeviceMappings;
    }

    public void setBlockDeviceMappings(List blockDeviceMappings) {
        isSet.add("blockDeviceMappings");
        this.blockDeviceMappings = blockDeviceMappings;
    }

    public LaunchSpecIamInstanceProfileSpecification getIamInstanceProfile() {
        return iamInstanceProfile;
    }

    public void setIamInstanceProfile(LaunchSpecIamInstanceProfileSpecification iamInstanceProfile) {
        isSet.add("iamInstanceProfile");
        this.iamInstanceProfile = iamInstanceProfile;
    }

    public String getImageId() {
        return imageId;
    }

    public void setImageId(String imageId) {
        isSet.add("imageId");
        this.imageId = imageId;
    }

    public LaunchSpecInstanceMetadataOptions getInstanceMetadataOptions() {
        return instanceMetadataOptions;
    }

    public void setInstanceMetadataOptions(LaunchSpecInstanceMetadataOptions instanceMetadataOptions) {
        isSet.add("instanceMetadataOptions");
        this.instanceMetadataOptions = instanceMetadataOptions;
    }

    public String getName() {
        return name;
    }

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

    public String getOceanId() {
        return oceanId;
    }

    public void setOceanId(String oceanId) {
        isSet.add("oceanId");
        this.oceanId = oceanId;
    }

    public Boolean getRestrictScaleDown() {
        return restrictScaleDown;
    }

    public void setRestrictScaleDown(Boolean restrictScaleDown) {
        isSet.add("restrictScaleDown");
        this.restrictScaleDown = restrictScaleDown;
    }

    public List getSecurityGroupIds() {
        return securityGroupIds;
    }

    public void setSecurityGroupIds(List securityGroupIds) {
        isSet.add("securityGroupIds");
        this.securityGroupIds = securityGroupIds;
    }

    public List getSubnetIds() {
        return subnetIds;
    }

    public void setSubnetIds(List subnetIds) {
        isSet.add("subnetIds");
        this.subnetIds = subnetIds;
    }

    public List getTags() {
        return tags;
    }

    public void setTags(List tags) {
        isSet.add("tags");
        this.tags = tags;
    }

    public String getUserData() {
        return userData;
    }

    public void setUserData(String userData) {
        isSet.add("userData");
        this.userData = userData;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        isSet.add("id");
        this.id = id;
    }

    public static class Builder {

        private ClusterLaunchSpecification launchspec;

        private Builder() {
            this.launchspec = new ClusterLaunchSpecification();
        }

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

        public Builder setAttributes(final List attributes) {
            launchspec.setAttributes(attributes);
            return this;
        }

        public Builder setAutoScale(final LaunchSpecAutoScaleSpecification autoScale) {
            launchspec.setAutoScale(autoScale);
            return this;
        }

        public Builder setBlockDeviceMappings(final List blockDeviceMappings) {
            launchspec.setBlockDeviceMappings(blockDeviceMappings);
            return this;
        }

        public Builder setIamInstanceProfile(final LaunchSpecIamInstanceProfileSpecification iamInstanceProfile) {
            launchspec.setIamInstanceProfile(iamInstanceProfile);
            return this;
        }

        public Builder setName(final String name) {
            launchspec.setName(name);
            return this;
        }

        public Builder setOceanId(final String oceanId) {
            launchspec.setOceanId(oceanId);
            return this;
        }

        public Builder setImageId(final String imageId) {
            launchspec.setImageId(imageId);
            return this;
        }

        public Builder setRestrictScaleDown(final Boolean restrictScaleDown) {
            launchspec.setRestrictScaleDown(restrictScaleDown);
            return this;
        }

        public Builder setSecurityGroupIds(final List securityGroupIds) {
            launchspec.setSecurityGroupIds(securityGroupIds);
            return this;
        }

        public Builder setSubnetIds(final List subnetIds) {
            launchspec.setSubnetIds(subnetIds);
            return this;
        }

        public Builder setTags(final List tags) {
            launchspec.setTags(tags);
            return this;
        }

        public Builder setId(final String id) {
            launchspec.setId(id);
            return this;
        }

        public Builder setUserData(final String userData) {
            launchspec.setUserData(userData);
            return this;
        }

        public Builder setInstanceMetadataOptions(final LaunchSpecInstanceMetadataOptions instanceMetadataOptions) {
            launchspec.setInstanceMetadataOptions(instanceMetadataOptions);
            return this;
        }

        public ClusterLaunchSpecification build() {
            return launchspec;
        }
    }

    @JsonIgnore
    public boolean isAttributesSet() {
        return isSet.contains("attributes");
    }

    @JsonIgnore
    public boolean isIdSet() {
        return isSet.contains("id");
    }

    @JsonIgnore
    public boolean isAutoScaleSet() {
        return isSet.contains("autoScale");
    }

    @JsonIgnore
    public boolean isBlockDeviceMappingsSet() {
        return isSet.contains("blockDeviceMappings");
    }

    @JsonIgnore
    public boolean isIamInstanceProfileSet() {
        return isSet.contains("iamInstanceProfile");
    }

    @JsonIgnore
    public boolean isImageIdSet() {
        return isSet.contains("imageId");
    }

    @JsonIgnore
    public boolean isInstanceMetadataOptionsSet() {
        return isSet.contains("instanceMetadataOptions");
    }

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

    @JsonIgnore
    public boolean isOceanIdSet() {
        return isSet.contains("oceanId");
    }

    @JsonIgnore
    public boolean isRestrictScaleDownSet() {
        return isSet.contains("restrictScaleDown");
    }

    @JsonIgnore
    public boolean isSecurityGroupIdsSet() {
        return isSet.contains("securityGroupIds");
    }

    @JsonIgnore
    public boolean isSubnetIdsSet() {
        return isSet.contains("subnetIds");
    }

    @JsonIgnore
    public boolean isTagsSet() {
        return isSet.contains("tags");
    }

    @JsonIgnore
    public boolean isUserDataSet() {
        return isSet.contains("userData");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy