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

com.pulumi.linode.inputs.VpcSubnetLinodeInterfaceArgs Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.linode.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.Objects;


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

    public static final VpcSubnetLinodeInterfaceArgs Empty = new VpcSubnetLinodeInterfaceArgs();

    @Import(name="active", required=true)
    private Output active;

    public Output active() {
        return this.active;
    }

    /**
     * The ID of the VPC Subnet.
     * 
     */
    @Import(name="id", required=true)
    private Output id;

    /**
     * @return The ID of the VPC Subnet.
     * 
     */
    public Output id() {
        return this.id;
    }

    private VpcSubnetLinodeInterfaceArgs() {}

    private VpcSubnetLinodeInterfaceArgs(VpcSubnetLinodeInterfaceArgs $) {
        this.active = $.active;
        this.id = $.id;
    }

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

    public static final class Builder {
        private VpcSubnetLinodeInterfaceArgs $;

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

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

        public Builder active(Output active) {
            $.active = active;
            return this;
        }

        public Builder active(Boolean active) {
            return active(Output.of(active));
        }

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

        /**
         * @param id The ID of the VPC Subnet.
         * 
         * @return builder
         * 
         */
        public Builder id(Integer id) {
            return id(Output.of(id));
        }

        public VpcSubnetLinodeInterfaceArgs build() {
            if ($.active == null) {
                throw new MissingRequiredPropertyException("VpcSubnetLinodeInterfaceArgs", "active");
            }
            if ($.id == null) {
                throw new MissingRequiredPropertyException("VpcSubnetLinodeInterfaceArgs", "id");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy