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

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

@CustomType
public final class GetVlansVlan {
    /**
     * @return When the VLAN was created.
     * 
     */
    private String created;
    /**
     * @return The unique label of the VLAN.
     * 
     */
    private String label;
    /**
     * @return The running Linodes currently attached to the VLAN.
     * 
     */
    private List linodes;
    /**
     * @return The region the VLAN is located in. See all regions [here](https://api.linode.com/v4/regions).
     * 
     */
    private String region;

    private GetVlansVlan() {}
    /**
     * @return When the VLAN was created.
     * 
     */
    public String created() {
        return this.created;
    }
    /**
     * @return The unique label of the VLAN.
     * 
     */
    public String label() {
        return this.label;
    }
    /**
     * @return The running Linodes currently attached to the VLAN.
     * 
     */
    public List linodes() {
        return this.linodes;
    }
    /**
     * @return The region the VLAN is located in. See all regions [here](https://api.linode.com/v4/regions).
     * 
     */
    public String region() {
        return this.region;
    }

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

    public static Builder builder(GetVlansVlan defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String created;
        private String label;
        private List linodes;
        private String region;
        public Builder() {}
        public Builder(GetVlansVlan defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.created = defaults.created;
    	      this.label = defaults.label;
    	      this.linodes = defaults.linodes;
    	      this.region = defaults.region;
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy