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

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

There is a newer version: 0.20.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.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class BgpSessionState extends com.pulumi.resources.ResourceArgs {

    public static final BgpSessionState Empty = new BgpSessionState();

    /**
     * `ipv4` or `ipv6`.
     * 
     */
    @Import(name="addressFamily")
    private @Nullable Output addressFamily;

    /**
     * @return `ipv4` or `ipv6`.
     * 
     */
    public Optional> addressFamily() {
        return Optional.ofNullable(this.addressFamily);
    }

    /**
     * Boolean flag to set the default route policy. False by default.
     * 
     */
    @Import(name="defaultRoute")
    private @Nullable Output defaultRoute;

    /**
     * @return Boolean flag to set the default route policy. False by default.
     * 
     */
    public Optional> defaultRoute() {
        return Optional.ofNullable(this.defaultRoute);
    }

    /**
     * ID of device.
     * 
     */
    @Import(name="deviceId")
    private @Nullable Output deviceId;

    /**
     * @return ID of device.
     * 
     */
    public Optional> deviceId() {
        return Optional.ofNullable(this.deviceId);
    }

    /**
     * Status of the session - `up` or `down`
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Status of the session - `up` or `down`
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    private BgpSessionState() {}

    private BgpSessionState(BgpSessionState $) {
        this.addressFamily = $.addressFamily;
        this.defaultRoute = $.defaultRoute;
        this.deviceId = $.deviceId;
        this.status = $.status;
    }

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

    public static final class Builder {
        private BgpSessionState $;

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

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

        /**
         * @param addressFamily `ipv4` or `ipv6`.
         * 
         * @return builder
         * 
         */
        public Builder addressFamily(@Nullable Output addressFamily) {
            $.addressFamily = addressFamily;
            return this;
        }

        /**
         * @param addressFamily `ipv4` or `ipv6`.
         * 
         * @return builder
         * 
         */
        public Builder addressFamily(String addressFamily) {
            return addressFamily(Output.of(addressFamily));
        }

        /**
         * @param defaultRoute Boolean flag to set the default route policy. False by default.
         * 
         * @return builder
         * 
         */
        public Builder defaultRoute(@Nullable Output defaultRoute) {
            $.defaultRoute = defaultRoute;
            return this;
        }

        /**
         * @param defaultRoute Boolean flag to set the default route policy. False by default.
         * 
         * @return builder
         * 
         */
        public Builder defaultRoute(Boolean defaultRoute) {
            return defaultRoute(Output.of(defaultRoute));
        }

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

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

        /**
         * @param status Status of the session - `up` or `down`
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Status of the session - `up` or `down`
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        public BgpSessionState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy