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

com.spotinst.sdkjava.model.Images Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;

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

/**
 * Created by Janetlin Kiruba on 06/07/22.
 */
public class Images {

    // Partial Update support
    @JsonIgnore
    private Set isSet;
    private String id;

    //region Constructor

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

    public Set getIsSet() {
        return isSet;
    }

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

    public String getId() {
        return id;
    }

    public void setId(String id) {
        isSet.add("id");
        this.id = id;
    }

    //region Builder class
    public static class Builder {
        private Images images;

        private Builder() {
            this.images = new Images();
        }

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

        public Builder setId(final String id) {
            images.setId(id);
            return this;
        }

        public Images build() {
            // TODO : Validations
            return images;
        }
    }
    //endregion
    //region isSet methods
    // Is Id Set boolean method
    @JsonIgnore
    public boolean isIdSet() {
        return isSet.contains("id");
    }

    //endregion
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy