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

com.spotinst.sdkjava.model.api.azure.elastiGroup.V3.Deployment.ApiDeploymentDetailsBatchAzure Maven / Gradle / Ivy

There is a newer version: 1.0.121
Show newest version
package com.spotinst.sdkjava.model.api.azure.elastiGroup.V3.Deployment;


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 ApiDeploymentDetailsBatchAzure implements IPartialUpdateEntity {
    //region members
    @JsonIgnore
    private Set                                   isSet;
    private Integer                                       batch;
    private List blue;
    private List green;
    //endregion

    //region constructor
    public ApiDeploymentDetailsBatchAzure() {
        isSet = new HashSet<>();
    }
    //endregion

    //region getters & setters
    @Override
    public Set getIsSet() {
        return isSet;
    }

    public Integer getBatch() {
        return batch;
    }

    public void setBatch(Integer batch) {
        this.batch = batch;
        touch("batch");
    }

    public List getBlue() {
        return blue;
    }

    public void setBlue(List blue) {
        this.blue = blue;
        touch("blue");
    }

    public List getGreen() {
        return green;
    }

    public void setGreen(List green) {
        this.green = green;
        touch("green");
    }

    //endregion

    //region isSet boolean methods
    @JsonIgnore
    public Boolean isBatchSet() {
        return this.isSet.contains("batch");
    }
    @JsonIgnore
    public Boolean isBlueSet() {
        return this.isSet.contains("blue");
    }
    @JsonIgnore
    public Boolean isGreenSet() {
        return this.isSet.contains("green");
    }
    //endregion

    //region private methods - touch helper
    private void touch(String fieldName) {
        this.isSet.add(fieldName);
    }
    //endregion


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy