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

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

@CustomType
public final class GetVpcSubnetResult {
    /**
     * @return The date and time when the VPC Subnet was created.
     * 
     */
    private String created;
    private String id;
    /**
     * @return The IPv4 range of this subnet in CIDR format.
     * 
     */
    private String ipv4;
    /**
     * @return The label of the VPC subnet.
     * 
     */
    private String label;
    /**
     * @return A list of Linode IDs that added to this subnet.
     * 
     */
    private List linodes;
    /**
     * @return The date and time when the VPC Subnet was last updated.
     * 
     */
    private String updated;
    private Integer vpcId;

    private GetVpcSubnetResult() {}
    /**
     * @return The date and time when the VPC Subnet was created.
     * 
     */
    public String created() {
        return this.created;
    }
    public String id() {
        return this.id;
    }
    /**
     * @return The IPv4 range of this subnet in CIDR format.
     * 
     */
    public String ipv4() {
        return this.ipv4;
    }
    /**
     * @return The label of the VPC subnet.
     * 
     */
    public String label() {
        return this.label;
    }
    /**
     * @return A list of Linode IDs that added to this subnet.
     * 
     */
    public List linodes() {
        return this.linodes;
    }
    /**
     * @return The date and time when the VPC Subnet was last updated.
     * 
     */
    public String updated() {
        return this.updated;
    }
    public Integer vpcId() {
        return this.vpcId;
    }

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

    public static Builder builder(GetVpcSubnetResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String created;
        private String id;
        private String ipv4;
        private String label;
        private List linodes;
        private String updated;
        private Integer vpcId;
        public Builder() {}
        public Builder(GetVpcSubnetResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.created = defaults.created;
    	      this.id = defaults.id;
    	      this.ipv4 = defaults.ipv4;
    	      this.label = defaults.label;
    	      this.linodes = defaults.linodes;
    	      this.updated = defaults.updated;
    	      this.vpcId = defaults.vpcId;
        }

        @CustomType.Setter
        public Builder created(String created) {
            if (created == null) {
              throw new MissingRequiredPropertyException("GetVpcSubnetResult", "created");
            }
            this.created = created;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetVpcSubnetResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder ipv4(String ipv4) {
            if (ipv4 == null) {
              throw new MissingRequiredPropertyException("GetVpcSubnetResult", "ipv4");
            }
            this.ipv4 = ipv4;
            return this;
        }
        @CustomType.Setter
        public Builder label(String label) {
            if (label == null) {
              throw new MissingRequiredPropertyException("GetVpcSubnetResult", "label");
            }
            this.label = label;
            return this;
        }
        @CustomType.Setter
        public Builder linodes(List linodes) {
            if (linodes == null) {
              throw new MissingRequiredPropertyException("GetVpcSubnetResult", "linodes");
            }
            this.linodes = linodes;
            return this;
        }
        public Builder linodes(GetVpcSubnetLinode... linodes) {
            return linodes(List.of(linodes));
        }
        @CustomType.Setter
        public Builder updated(String updated) {
            if (updated == null) {
              throw new MissingRequiredPropertyException("GetVpcSubnetResult", "updated");
            }
            this.updated = updated;
            return this;
        }
        @CustomType.Setter
        public Builder vpcId(Integer vpcId) {
            if (vpcId == null) {
              throw new MissingRequiredPropertyException("GetVpcSubnetResult", "vpcId");
            }
            this.vpcId = vpcId;
            return this;
        }
        public GetVpcSubnetResult build() {
            final var _resultValue = new GetVpcSubnetResult();
            _resultValue.created = created;
            _resultValue.id = id;
            _resultValue.ipv4 = ipv4;
            _resultValue.label = label;
            _resultValue.linodes = linodes;
            _resultValue.updated = updated;
            _resultValue.vpcId = vpcId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy