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

com.pulumi.linode.outputs.VpcSubnetLinodeInterface 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.outputs;

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

@CustomType
public final class VpcSubnetLinodeInterface {
    private Boolean active;
    /**
     * @return The ID of the VPC Subnet.
     * 
     */
    private Integer id;

    private VpcSubnetLinodeInterface() {}
    public Boolean active() {
        return this.active;
    }
    /**
     * @return The ID of the VPC Subnet.
     * 
     */
    public Integer id() {
        return this.id;
    }

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

    public static Builder builder(VpcSubnetLinodeInterface defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean active;
        private Integer id;
        public Builder() {}
        public Builder(VpcSubnetLinodeInterface defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.active = defaults.active;
    	      this.id = defaults.id;
        }

        @CustomType.Setter
        public Builder active(Boolean active) {
            if (active == null) {
              throw new MissingRequiredPropertyException("VpcSubnetLinodeInterface", "active");
            }
            this.active = active;
            return this;
        }
        @CustomType.Setter
        public Builder id(Integer id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("VpcSubnetLinodeInterface", "id");
            }
            this.id = id;
            return this;
        }
        public VpcSubnetLinodeInterface build() {
            final var _resultValue = new VpcSubnetLinodeInterface();
            _resultValue.active = active;
            _resultValue.id = id;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy