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

com.spotinst.sdkjava.model.api.elastigroup.aws.ApiElastigroupDeploymentStrategy Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.*;
import com.spotinst.sdkjava.client.rest.IPartialUpdateEntity;

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

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonFilter("PartialUpdateEntityFilter")

public class ApiElastigroupDeploymentStrategy implements IPartialUpdateEntity {
    @JsonIgnore
    private Set                               isSet;
    private Integer                                   batchMinHealthyPercentage;
    private String                                    action;
    private ApiElastigroupDeploymentStrategyOnFailure onFailure;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public Integer getBatchMinHealthyPercentage() {
        return batchMinHealthyPercentage;
    }

    public void setBatchMinHealthyPercentage(Integer batchMinHealthyPercentage) {
        isSet.add("batchMinHealthyPercentage");
        this.batchMinHealthyPercentage = batchMinHealthyPercentage;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        isSet.add("action");
        this.action = action;
    }

    public ApiElastigroupDeploymentStrategyOnFailure getOnFailure() {
        return onFailure;
    }

    public void setOnFailure(ApiElastigroupDeploymentStrategyOnFailure onFailure) {
        isSet.add("onFailure");
        this.onFailure = onFailure;
    }


    @JsonIgnore
    public boolean isBatchMinHealthyPercentageSet() { return isSet.contains("batchMinHealthyPercentage"); }

    @JsonIgnore
    public boolean isActionSet() {
        return isSet.contains("action");
    }

    @JsonIgnore
    public boolean isOnFailureSet() {
        return isSet.contains("onFailure");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy