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

com.pulumi.azurenative.networkcloud.outputs.NicResponse Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.networkcloud.outputs;

import com.pulumi.azurenative.networkcloud.outputs.LldpNeighborResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class NicResponse {
    /**
     * @return The information about the device connected to this NIC.
     * 
     */
    private LldpNeighborResponse lldpNeighbor;
    /**
     * @return The MAC address associated with this NIC.
     * 
     */
    private String macAddress;
    /**
     * @return The name of the NIC/interface.
     * 
     */
    private String name;

    private NicResponse() {}
    /**
     * @return The information about the device connected to this NIC.
     * 
     */
    public LldpNeighborResponse lldpNeighbor() {
        return this.lldpNeighbor;
    }
    /**
     * @return The MAC address associated with this NIC.
     * 
     */
    public String macAddress() {
        return this.macAddress;
    }
    /**
     * @return The name of the NIC/interface.
     * 
     */
    public String name() {
        return this.name;
    }

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

    public static Builder builder(NicResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private LldpNeighborResponse lldpNeighbor;
        private String macAddress;
        private String name;
        public Builder() {}
        public Builder(NicResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.lldpNeighbor = defaults.lldpNeighbor;
    	      this.macAddress = defaults.macAddress;
    	      this.name = defaults.name;
        }

        @CustomType.Setter
        public Builder lldpNeighbor(LldpNeighborResponse lldpNeighbor) {
            if (lldpNeighbor == null) {
              throw new MissingRequiredPropertyException("NicResponse", "lldpNeighbor");
            }
            this.lldpNeighbor = lldpNeighbor;
            return this;
        }
        @CustomType.Setter
        public Builder macAddress(String macAddress) {
            if (macAddress == null) {
              throw new MissingRequiredPropertyException("NicResponse", "macAddress");
            }
            this.macAddress = macAddress;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("NicResponse", "name");
            }
            this.name = name;
            return this;
        }
        public NicResponse build() {
            final var _resultValue = new NicResponse();
            _resultValue.lldpNeighbor = lldpNeighbor;
            _resultValue.macAddress = macAddress;
            _resultValue.name = name;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy