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

com.pulumi.aws.ec2transitgateway.outputs.GetRouteTableRoutesResult Maven / Gradle / Ivy

// *** 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.aws.ec2transitgateway.outputs;

import com.pulumi.aws.ec2transitgateway.outputs.GetRouteTableRoutesFilter;
import com.pulumi.aws.ec2transitgateway.outputs.GetRouteTableRoutesRoute;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetRouteTableRoutesResult {
    private List filters;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return List of Transit Gateway Routes.
     * 
     */
    private List routes;
    private String transitGatewayRouteTableId;

    private GetRouteTableRoutesResult() {}
    public List filters() {
        return this.filters;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return List of Transit Gateway Routes.
     * 
     */
    public List routes() {
        return this.routes;
    }
    public String transitGatewayRouteTableId() {
        return this.transitGatewayRouteTableId;
    }

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

    public static Builder builder(GetRouteTableRoutesResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List filters;
        private String id;
        private List routes;
        private String transitGatewayRouteTableId;
        public Builder() {}
        public Builder(GetRouteTableRoutesResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.filters = defaults.filters;
    	      this.id = defaults.id;
    	      this.routes = defaults.routes;
    	      this.transitGatewayRouteTableId = defaults.transitGatewayRouteTableId;
        }

        @CustomType.Setter
        public Builder filters(List filters) {
            if (filters == null) {
              throw new MissingRequiredPropertyException("GetRouteTableRoutesResult", "filters");
            }
            this.filters = filters;
            return this;
        }
        public Builder filters(GetRouteTableRoutesFilter... filters) {
            return filters(List.of(filters));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetRouteTableRoutesResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder routes(List routes) {
            if (routes == null) {
              throw new MissingRequiredPropertyException("GetRouteTableRoutesResult", "routes");
            }
            this.routes = routes;
            return this;
        }
        public Builder routes(GetRouteTableRoutesRoute... routes) {
            return routes(List.of(routes));
        }
        @CustomType.Setter
        public Builder transitGatewayRouteTableId(String transitGatewayRouteTableId) {
            if (transitGatewayRouteTableId == null) {
              throw new MissingRequiredPropertyException("GetRouteTableRoutesResult", "transitGatewayRouteTableId");
            }
            this.transitGatewayRouteTableId = transitGatewayRouteTableId;
            return this;
        }
        public GetRouteTableRoutesResult build() {
            final var _resultValue = new GetRouteTableRoutesResult();
            _resultValue.filters = filters;
            _resultValue.id = id;
            _resultValue.routes = routes;
            _resultValue.transitGatewayRouteTableId = transitGatewayRouteTableId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy