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

com.ovhcloud.pulumi.ovh.CloudProject.inputs.GatewayInterfaceArgs Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.CloudProject.inputs;

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;


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

    public static final GatewayInterfaceArgs Empty = new GatewayInterfaceArgs();

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

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

    /**
     * IP of the interface.
     * 
     */
    @Import(name="ip")
    private @Nullable Output ip;

    /**
     * @return IP of the interface.
     * 
     */
    public Optional> ip() {
        return Optional.ofNullable(this.ip);
    }

    /**
     * ID of the private network.
     * 
     */
    @Import(name="networkId")
    private @Nullable Output networkId;

    /**
     * @return ID of the private network.
     * 
     */
    public Optional> networkId() {
        return Optional.ofNullable(this.networkId);
    }

    /**
     * ID of the subnet.
     * 
     */
    @Import(name="subnetId")
    private @Nullable Output subnetId;

    /**
     * @return ID of the subnet.
     * 
     */
    public Optional> subnetId() {
        return Optional.ofNullable(this.subnetId);
    }

    private GatewayInterfaceArgs() {}

    private GatewayInterfaceArgs(GatewayInterfaceArgs $) {
        this.id = $.id;
        this.ip = $.ip;
        this.networkId = $.networkId;
        this.subnetId = $.subnetId;
    }

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

    public static final class Builder {
        private GatewayInterfaceArgs $;

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

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

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

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

        /**
         * @param ip IP of the interface.
         * 
         * @return builder
         * 
         */
        public Builder ip(@Nullable Output ip) {
            $.ip = ip;
            return this;
        }

        /**
         * @param ip IP of the interface.
         * 
         * @return builder
         * 
         */
        public Builder ip(String ip) {
            return ip(Output.of(ip));
        }

        /**
         * @param networkId ID of the private network.
         * 
         * @return builder
         * 
         */
        public Builder networkId(@Nullable Output networkId) {
            $.networkId = networkId;
            return this;
        }

        /**
         * @param networkId ID of the private network.
         * 
         * @return builder
         * 
         */
        public Builder networkId(String networkId) {
            return networkId(Output.of(networkId));
        }

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

        /**
         * @param subnetId ID of the subnet.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(String subnetId) {
            return subnetId(Output.of(subnetId));
        }

        public GatewayInterfaceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy