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

com.spotinst.sdkjava.model.bl.aws.managedInstance.NetworkInterfaces 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 NetworkInterfaces {

    @JsonIgnore
    private Set isSet;
    private Boolean     associateIpv6Address;
    private Boolean     associatePublicIpAddress;
    private Integer     deviceIndex;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public Boolean getAssociateIpv6Address() {
        return associateIpv6Address;
    }

    public void setAssociateIpv6Address(Boolean associateIpv6Address) {
        isSet.add("associateIpv6Address");
        this.associateIpv6Address = associateIpv6Address;
    }

    public Boolean getAssociatePublicIpAddress() {
        return associatePublicIpAddress;
    }

    public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress) {
        isSet.add("associatePublicIpAddress");
        this.associatePublicIpAddress = associatePublicIpAddress;
    }

    public Integer getDeviceIndex() {
        return deviceIndex;
    }

    public void setDeviceIndex(Integer deviceIndex) {
        isSet.add("deviceIndex");
        this.deviceIndex = deviceIndex;
    }

    public static class Builder {
        private NetworkInterfaces networkInterfaces;

        private Builder() {
            this.networkInterfaces = new NetworkInterfaces();
        }

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

        public Builder setAssociateIpv6Address(final Boolean associateIpv6Address) {
            networkInterfaces.setAssociateIpv6Address(associateIpv6Address);
            return this;
        }

        public Builder setAssociatePublicIpAddress(final Boolean associatePublicIpAddress) {
            networkInterfaces.setAssociatePublicIpAddress(associatePublicIpAddress);
            return this;
        }

        public Builder setDeviceIndex(final Integer deviceIndex) {
            networkInterfaces.setDeviceIndex(deviceIndex);
            return this;
        }

        public NetworkInterfaces build() {
            return networkInterfaces;
        }
    }

    @JsonIgnore
    public boolean isAssociateIpv6AddressSet() {
        return isSet.contains("associateIpv6Address");
    }

    @JsonIgnore
    public boolean isAssociatePublicIpAddressSet() {
        return isSet.contains("associatePublicIpAddress");
    }

    @JsonIgnore
    public boolean isDeviceIndexSet() {
        return isSet.contains("deviceIndex");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy