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

com.spotinst.sdkjava.model.bl.oceanCD.StrategyCanary Maven / Gradle / Ivy

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

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 StrategyCanary {
    @JsonIgnore
    private Set                               isSet;
    private CanaryBackgroundVerification              backgroundVerification;
    private List                         steps;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public CanaryBackgroundVerification getBackgroundVerification() {
        return backgroundVerification;
    }

    public void setBackgroundVerification(CanaryBackgroundVerification backgroundVerification) {
        isSet.add("backgroundVerification");
        this.backgroundVerification = backgroundVerification;
    }

    public List getSteps() {
        return steps;
    }

    public void setSteps(List steps) {
        isSet.add("steps");
        this.steps = steps;
    }

    public static class Builder {
        private StrategyCanary strategyCanary;

        private Builder() {
            this.strategyCanary = new StrategyCanary();
        }

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

        public Builder setBackgroundVerification(final CanaryBackgroundVerification backgroundVerification) {
            strategyCanary.setBackgroundVerification(backgroundVerification);
            return this;
        }

        public Builder setSteps(final List steps) {
            strategyCanary.setSteps(steps);
            return this;
        }

        public StrategyCanary build() {
            return strategyCanary;
        }
    }

    @JsonIgnore
    public boolean isBackgroundVerificationSet() {
        return isSet.contains("backgroundVerification");
    }

    @JsonIgnore
    public boolean isStepsSet() {
        return isSet.contains("steps");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy