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

com.spotinst.sdkjava.model.api.oceanCD.ApiStrategyCanary Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spotinst.sdkjava.client.rest.IPartialUpdateEntity;

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

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonFilter("PartialUpdateEntityFilter")
public class ApiStrategyCanary implements IPartialUpdateEntity {
    @JsonIgnore
    private Set                               isSet;
    private ApiCanaryBackgroundVerification backgroundVerification;
    private List                         steps;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public ApiCanaryBackgroundVerification getBackgroundVerification() {
        return backgroundVerification;
    }

    public void setBackgroundVerification(ApiCanaryBackgroundVerification 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 ApiStrategyCanary strategyCanary;

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

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

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

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

        public ApiStrategyCanary 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