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

com.pulumi.linode.outputs.GetVpcSubnetsVpcSubnetLinode 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 com.pulumi.linode.outputs.GetVpcSubnetsVpcSubnetLinodeInterface;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetVpcSubnetsVpcSubnetLinode {
    /**
     * @return The unique id of the VPC subnet.
     * 
     */
    private Integer id;
    private List interfaces;

    private GetVpcSubnetsVpcSubnetLinode() {}
    /**
     * @return The unique id of the VPC subnet.
     * 
     */
    public Integer id() {
        return this.id;
    }
    public List interfaces() {
        return this.interfaces;
    }

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

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

        @CustomType.Setter
        public Builder id(Integer id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetVpcSubnetsVpcSubnetLinode", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder interfaces(List interfaces) {
            if (interfaces == null) {
              throw new MissingRequiredPropertyException("GetVpcSubnetsVpcSubnetLinode", "interfaces");
            }
            this.interfaces = interfaces;
            return this;
        }
        public Builder interfaces(GetVpcSubnetsVpcSubnetLinodeInterface... interfaces) {
            return interfaces(List.of(interfaces));
        }
        public GetVpcSubnetsVpcSubnetLinode build() {
            final var _resultValue = new GetVpcSubnetsVpcSubnetLinode();
            _resultValue.id = id;
            _resultValue.interfaces = interfaces;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy