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

com.spotinst.sdkjava.model.bl.ocean.gke.ClusterContainerImageSpecification Maven / Gradle / Ivy

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

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.List;
import java.util.Set;

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ClusterContainerImageSpecification {

    @JsonIgnore
    private Set                 isSet;
    private List                approvedImages;

    private ClusterContainerImageSpecification() {
        isSet = new HashSet<>();
    }

    public Set getIsSet() {
        return isSet;
    }

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

    public List getApprovedImages() { return approvedImages; }

    public void setApprovedImages(List approvedImages) {
        isSet.add("approvedImages");
        this.approvedImages = approvedImages;
    }

    public static class Builder {
        private ClusterContainerImageSpecification containerImageSpecification;

        private Builder() {
            this.containerImageSpecification = new ClusterContainerImageSpecification();
        }

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

        public Builder setApprovedImages(final List approvedImages) {
            containerImageSpecification.setApprovedImages(approvedImages);
            return this;
        }

        public ClusterContainerImageSpecification build() {
            return containerImageSpecification;
        }
    }

    @JsonIgnore
    public boolean isApprovedImagesSet() { return isSet.contains("approvedImages"); }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy