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

com.spotinst.sdkjava.model.api.mrScaler.aws.ApiMrScalerAwsTaskGroup Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.spotinst.sdkjava.model.ElastigroupCapacityConfiguration;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class ApiMrScalerAwsTaskGroup {
    //region Members
    @JsonIgnore
    private Set isSet;
    private List instanceTypes;
    private ElastigroupCapacityConfiguration capacity;
    private String lifeCycle;
    private ApiMrScalerAwsEbsConfiguration ebsConfiguration;
    private ApiMrScalerAwsFile configurations;

    // endregion

    //region Constructor
    public ApiMrScalerAwsTaskGroup() {  isSet = new HashSet<>(); }
    // endregion

    // region methods
    // region instanceTypes
    public List getInstanceTypes(){ return instanceTypes; }

    public void setInstanceTypes(List instanceTypes) {
        isSet.add("instanceTypes");
        this.instanceTypes = instanceTypes;
    }

    public Boolean isInstanceTypesSet(){ return isSet.contains("instanceTypes"); }
    // endregion

    // region capacity
    public ElastigroupCapacityConfiguration getCapacity(){ return capacity; }

    public void setCapacity(ElastigroupCapacityConfiguration capacity) {
        isSet.add("capacity");
        this.capacity = capacity;
    }

    public Boolean isCapacitySet(){ return isSet.contains("capacity"); }
    // endregion

    // region lifeCycle
    public String getLifeCycle(){ return lifeCycle; }

    public void setLifeCycle(String lifeCycle) {
        isSet.add("lifeCycle");
        this.lifeCycle = lifeCycle;
    }

    public Boolean isLifeCycle(){ return isSet.contains("lifeCycle"); }
    // endregion

    // region ebsConfiguration
    public ApiMrScalerAwsEbsConfiguration getEbsConfiguration(){ return ebsConfiguration; }

    public void setEbsConfiguration(ApiMrScalerAwsEbsConfiguration ebsConfiguration) {
        isSet.add("ebsConfiguration");
        this.ebsConfiguration = ebsConfiguration;
    }

    public Boolean isEbsConfigurationSet(){ return isSet.contains("ebsConfiguration"); }
    // endregion

    // region configurations
    public ApiMrScalerAwsFile getConfigurations(){ return configurations; }

    public void setConfigurations(ApiMrScalerAwsFile configurations) {
        isSet.add("configurations");
        this.configurations = configurations;
    }

    public Boolean isConfigurations(){ return isSet.contains("configurations"); }
    // endregion

    // endregion

    public static class Builder {
        private ApiMrScalerAwsTaskGroup taskGroup;

        private Builder(){ this.taskGroup = new ApiMrScalerAwsTaskGroup(); }

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

        // region build methods
        public Builder setInstanceTypes(List instanceTypes){
            taskGroup.setInstanceTypes(instanceTypes);
            return this;
        }
        public Builder setCapacity(ElastigroupCapacityConfiguration capacity){
            taskGroup.setCapacity(capacity);
            return this;
        }
        public Builder setLifeCycle(String lifeCycle){
            taskGroup.setLifeCycle(lifeCycle);
            return this;
        }
        public Builder setEbsConfiguration(ApiMrScalerAwsEbsConfiguration ebsConfiguration){
            taskGroup.setEbsConfiguration(ebsConfiguration);
            return this;
        }
        public Builder setConfigurations(ApiMrScalerAwsFile configurations){
            taskGroup.setConfigurations(configurations);
            return this;
        }

        public ApiMrScalerAwsTaskGroup build(){
            return taskGroup;
        }
        // endregion
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy