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

com.pulumi.azurenative.azurestackhci.outputs.RouteTableResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.azurestackhci.outputs;

import com.pulumi.azurenative.azurestackhci.outputs.RouteResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class RouteTableResponse {
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    private String etag;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Collection of routes contained within a route table.
     * 
     */
    private @Nullable List routes;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private RouteTableResponse() {}
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    public String etag() {
        return this.etag;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Collection of routes contained within a route table.
     * 
     */
    public List routes() {
        return this.routes == null ? List.of() : this.routes;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(RouteTableResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String etag;
        private String name;
        private @Nullable List routes;
        private String type;
        public Builder() {}
        public Builder(RouteTableResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.etag = defaults.etag;
    	      this.name = defaults.name;
    	      this.routes = defaults.routes;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder etag(String etag) {
            if (etag == null) {
              throw new MissingRequiredPropertyException("RouteTableResponse", "etag");
            }
            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("RouteTableResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder routes(@Nullable List routes) {

            this.routes = routes;
            return this;
        }
        public Builder routes(RouteResponse... routes) {
            return routes(List.of(routes));
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("RouteTableResponse", "type");
            }
            this.type = type;
            return this;
        }
        public RouteTableResponse build() {
            final var _resultValue = new RouteTableResponse();
            _resultValue.etag = etag;
            _resultValue.name = name;
            _resultValue.routes = routes;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy