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

com.equinix.pulumi.metal.inputs.GetPortPlainArgs Maven / Gradle / Ivy

There is a newer version: 0.19.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.equinix.pulumi.metal.inputs;

import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetPortPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetPortPlainArgs Empty = new GetPortPlainArgs();

    /**
     * Device UUID where to lookup the port.
     * 
     */
    @Import(name="deviceId")
    private @Nullable String deviceId;

    /**
     * @return Device UUID where to lookup the port.
     * 
     */
    public Optional deviceId() {
        return Optional.ofNullable(this.deviceId);
    }

    /**
     * Name of the port to look up, i.e. `bond0`, `eth1`.
     * 
     */
    @Import(name="name")
    private @Nullable String name;

    /**
     * @return Name of the port to look up, i.e. `bond0`, `eth1`.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * ID of the port to read, conflicts with `device_id`.
     * 
     */
    @Import(name="portId")
    private @Nullable String portId;

    /**
     * @return ID of the port to read, conflicts with `device_id`.
     * 
     */
    public Optional portId() {
        return Optional.ofNullable(this.portId);
    }

    private GetPortPlainArgs() {}

    private GetPortPlainArgs(GetPortPlainArgs $) {
        this.deviceId = $.deviceId;
        this.name = $.name;
        this.portId = $.portId;
    }

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

    public static final class Builder {
        private GetPortPlainArgs $;

        public Builder() {
            $ = new GetPortPlainArgs();
        }

        public Builder(GetPortPlainArgs defaults) {
            $ = new GetPortPlainArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param deviceId Device UUID where to lookup the port.
         * 
         * @return builder
         * 
         */
        public Builder deviceId(@Nullable String deviceId) {
            $.deviceId = deviceId;
            return this;
        }

        /**
         * @param name Name of the port to look up, i.e. `bond0`, `eth1`.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable String name) {
            $.name = name;
            return this;
        }

        /**
         * @param portId ID of the port to read, conflicts with `device_id`.
         * 
         * @return builder
         * 
         */
        public Builder portId(@Nullable String portId) {
            $.portId = portId;
            return this;
        }

        public GetPortPlainArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy