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

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

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

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 imageSpecification;

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

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

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

        public ClusterContainerImageSpecification build() {
            return imageSpecification;
        }
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy