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

com.spotinst.sdkjava.model.bl.oceanCD.response.SpotDeployment Maven / Gradle / Ivy

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

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 SpotDeployment {
    @JsonIgnore
    private Set                    isSet;
    private String                         name;
    private String                         oldVersion;
    private String                         newVersion;
    private String                         oldManifest;
    private String                         newManifest;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public String getName() {
        return name;
    }

    public void setName(String name) {
        isSet.add("name");
        this.name = name;
    }

    public String getOldVersion() {
        return oldVersion;
    }

    public void setOldVersion(String oldVersion) {
        isSet.add("oldVersion");
        this.oldVersion = oldVersion;
    }

    public String getNewVersion() {
        return newVersion;
    }

    public void setNewVersion(String newVersion) {
        isSet.add("newVersion");
        this.newVersion = newVersion;
    }

    public String getOldManifest() {
        return oldManifest;
    }

    public void setOldManifest(String oldManifest) {
        isSet.add("oldManifest");
        this.oldManifest = oldManifest;
    }

    public String getNewManifest() {
        return newManifest;
    }

    public void setNewManifest(String newManifest) {
        isSet.add("newManifest");
        this.newManifest = newManifest;
    }

    public static class Builder {
        private SpotDeployment spotDeployment;

        private Builder() {
            this.spotDeployment = new SpotDeployment();
        }

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

        public Builder setName(final String name) {
            spotDeployment.setName(name);
            return this;
        }

        public Builder setOldVersion(final String oldVersion) {
            spotDeployment.setOldVersion(oldVersion);
            return this;
        }

        public Builder setNewVersion(final String newVersion) {
            spotDeployment.setNewVersion(newVersion);
            return this;
        }

        public Builder setOldManifest(final String oldManifest) {
            spotDeployment.setOldManifest(oldManifest);
            return this;
        }

        public Builder setNewManifest(final String newManifest) {
            spotDeployment.setNewManifest(newManifest);
            return this;
        }

        public SpotDeployment build() {
            return spotDeployment;
        }
    }

    @JsonIgnore
    public boolean isNameSet() {
        return isSet.contains("name");
    }

    @JsonIgnore
    public boolean isOldVersionSet() {
        return isSet.contains("oldVersion");
    }

    @JsonIgnore
    public boolean isNewVersionSet() {
        return isSet.contains("newVersion");
    }

    @JsonIgnore
    public boolean isOldManifestSet() {
        return isSet.contains("oldManifest");
    }

    @JsonIgnore
    public boolean isNewManifestSet() {
        return isSet.contains("newManifest");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy