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

com.spotinst.sdkjava.model.bl.aws.managedInstance.AmiBackup Maven / Gradle / Ivy

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

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 AmiBackup {

    //region Members
    @JsonIgnore
    private Set isSet;
    private Boolean     shouldDeleteImages;

    private AmiBackup() {
        isSet = new HashSet<>();
    }
    //endregion

    public Set getIsSet() {
        return isSet;
    }

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

    public Boolean getShouldDeleteImages() {
        return shouldDeleteImages;
    }

    public void setShouldDeleteImages(Boolean shouldDeleteImages) {
        isSet.add("shouldDeleteImages");
        this.shouldDeleteImages = shouldDeleteImages;
    }

    public static class Builder {
        private AmiBackup amiBackup;

        private Builder() {
            this.amiBackup = new AmiBackup();
        }

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

        public Builder setShouldDeleteImages(final Boolean shouldDeleteImages) {
            amiBackup.setShouldDeleteImages(shouldDeleteImages);
            return this;
        }

        public AmiBackup build() {
            // TODO : Validations
            return amiBackup;
        }
    }

    @JsonIgnore
    public boolean isShouldDeleteImagesSet() {
        return isSet.contains("shouldDeleteImages");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy