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

com.spotinst.sdkjava.model.ElastigroupOptimizeImages Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;

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

public class ElastigroupOptimizeImages {
    //region Members
    // Partial Update support
    @JsonIgnore
    private Set  isSet;
    private Boolean      shouldOptimizeEcsAmi;
    private MaintenanceWindowTypeEnum performAt;
    private List              timeWindows;

    //endregion
    //region Constructors
    private ElastigroupOptimizeImages() {
        isSet = new HashSet<>();
    }

    //region Getters & Setters
    public Set getIsSet() {
        return isSet;
    }

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

    public Boolean getShouldOptimizeEcsAmi() {
        return shouldOptimizeEcsAmi;
    }

    public void setShouldOptimizeEcsAmi(Boolean shouldOptimizeEcsAmi) {
        isSet.add("shouldOptimizeEcsAmi");
        this.shouldOptimizeEcsAmi = shouldOptimizeEcsAmi;
    }

    public MaintenanceWindowTypeEnum getPerformAt() {
        return performAt;
    }

    public void setPerformAt(MaintenanceWindowTypeEnum performAt) {
        isSet.add("performAt");
        this.performAt = performAt;
    }

    public List getTimeWindows() {
        return timeWindows;
    }

    public void setTimeWindows(List timeWindows) {
        isSet.add("timeWindows");
        this.timeWindows = timeWindows;
    }

    //endregion
    //region Builder class
    public static class Builder {
        private ElastigroupOptimizeImages optimizeImages;

        private Builder() {
            this.optimizeImages = new ElastigroupOptimizeImages();
        }

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

        public Builder setShouldOptimizeEcsAmi(final Boolean shouldOptimizeEcsAmi) {
            optimizeImages.setShouldOptimizeEcsAmi(shouldOptimizeEcsAmi);
            return this;
        }

        public Builder setPerformAt(final MaintenanceWindowTypeEnum performAt) {
            optimizeImages.setPerformAt(performAt);
            return this;
        }

        public Builder setTimeWindow(final List timeWindow) {
            optimizeImages.setTimeWindows(timeWindow);
            return this;
        }

        public ElastigroupOptimizeImages build() {
            return optimizeImages;
        }

    }


    //region isSet methods
    // Is optimizeImages Set boolean method
    @JsonIgnore
    public boolean isShouldOptimizeEcsAmiSet() {
        return isSet.contains("shouldOptimizeEcsAmi");
    }

    // Is performAt Set boolean method
    @JsonIgnore
    public boolean isPerformAtSet() {
        return isSet.contains("performAt");
    }

    // Is timeWindow Set boolean method
    @JsonIgnore
    public boolean isTimeWindowSet() {
        return isSet.contains("timeWindows");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy