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

com.pulumi.azurenative.network.inputs.ExpressRouteLinkArgs 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.network.inputs;

import com.pulumi.azurenative.network.enums.ExpressRouteLinkAdminState;
import com.pulumi.azurenative.network.inputs.ExpressRouteLinkMacSecConfigArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * ExpressRouteLink child resource definition.
 * 
 */
public final class ExpressRouteLinkArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExpressRouteLinkArgs Empty = new ExpressRouteLinkArgs();

    /**
     * Administrative state of the physical port.
     * 
     */
    @Import(name="adminState")
    private @Nullable Output> adminState;

    /**
     * @return Administrative state of the physical port.
     * 
     */
    public Optional>> adminState() {
        return Optional.ofNullable(this.adminState);
    }

    /**
     * Resource ID.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Resource ID.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * MacSec configuration.
     * 
     */
    @Import(name="macSecConfig")
    private @Nullable Output macSecConfig;

    /**
     * @return MacSec configuration.
     * 
     */
    public Optional> macSecConfig() {
        return Optional.ofNullable(this.macSecConfig);
    }

    /**
     * Name of child port resource that is unique among child port resources of the parent.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of child port resource that is unique among child port resources of the parent.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private ExpressRouteLinkArgs() {}

    private ExpressRouteLinkArgs(ExpressRouteLinkArgs $) {
        this.adminState = $.adminState;
        this.id = $.id;
        this.macSecConfig = $.macSecConfig;
        this.name = $.name;
    }

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

    public static final class Builder {
        private ExpressRouteLinkArgs $;

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

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

        /**
         * @param adminState Administrative state of the physical port.
         * 
         * @return builder
         * 
         */
        public Builder adminState(@Nullable Output> adminState) {
            $.adminState = adminState;
            return this;
        }

        /**
         * @param adminState Administrative state of the physical port.
         * 
         * @return builder
         * 
         */
        public Builder adminState(Either adminState) {
            return adminState(Output.of(adminState));
        }

        /**
         * @param adminState Administrative state of the physical port.
         * 
         * @return builder
         * 
         */
        public Builder adminState(String adminState) {
            return adminState(Either.ofLeft(adminState));
        }

        /**
         * @param adminState Administrative state of the physical port.
         * 
         * @return builder
         * 
         */
        public Builder adminState(ExpressRouteLinkAdminState adminState) {
            return adminState(Either.ofRight(adminState));
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param macSecConfig MacSec configuration.
         * 
         * @return builder
         * 
         */
        public Builder macSecConfig(@Nullable Output macSecConfig) {
            $.macSecConfig = macSecConfig;
            return this;
        }

        /**
         * @param macSecConfig MacSec configuration.
         * 
         * @return builder
         * 
         */
        public Builder macSecConfig(ExpressRouteLinkMacSecConfigArgs macSecConfig) {
            return macSecConfig(Output.of(macSecConfig));
        }

        /**
         * @param name Name of child port resource that is unique among child port resources of the parent.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of child port resource that is unique among child port resources of the parent.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public ExpressRouteLinkArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy