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

com.spotinst.sdkjava.model.bl.ocean.kubernetes.ClusterTasksSpecification Maven / Gradle / Ivy

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

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;

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ClusterTasksSpecification {
    @JsonIgnore
    private Set isSet;
    private Boolean     isEnabled;
    private String      cronExpression;
    private String      taskType;

    public ClusterTasksSpecification() { isSet = new HashSet<>(); }

    public Boolean getIsEnabled(){
        return isEnabled;
    }

    public void setIsEnabled(Boolean isEnabled){
        isSet.add("isEnabled");
        this.isEnabled = isEnabled;
    }

    public String getCronExpression(){
        return cronExpression;
    }

    public void setCronExpression(String cronExpression){
        isSet.add("cronExpression");
        this.cronExpression = cronExpression;
    }

    public String getTaskType(){
        return taskType;
    }

    public void setTaskType(String taskType){
        isSet.add("taskType");
        this.taskType = taskType;
    }

    public static class Builder {
        private ClusterTasksSpecification task;

        private Builder(){ this.task = new ClusterTasksSpecification(); }

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

        public Builder setIsEnabled(final Boolean isEnabled){
            task.setIsEnabled(isEnabled);
            return this;
        }
        public Builder setCronExpression(final String cronExpression){
            task.setCronExpression(cronExpression);
            return this;
        }
        public Builder setTaskType(final String taskType){
            task.setTaskType(taskType);
            return this;
        }

        public ClusterTasksSpecification build(){
            return task;
        }
    }

    @JsonIgnore
    public Boolean isIsEnabledSet(){
        return isSet.contains("isEnabled");
    }

    @JsonIgnore
    public Boolean isCronExpressionSet(){
        return isSet.contains("cronExpression");
    }

    @JsonIgnore
    public Boolean isTaskTypeSet(){
        return isSet.contains("taskType");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy