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

com.pulumi.aws.apigateway.inputs.GetResourcePlainArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.aws.apigateway.inputs;

import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetResourcePlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetResourcePlainArgs Empty = new GetResourcePlainArgs();

    /**
     * Full path of the resource.  If no path is found, an error will be returned.
     * 
     */
    @Import(name="path", required=true)
    private String path;

    /**
     * @return Full path of the resource.  If no path is found, an error will be returned.
     * 
     */
    public String path() {
        return this.path;
    }

    /**
     * REST API id that owns the resource. If no REST API is found, an error will be returned.
     * 
     */
    @Import(name="restApiId", required=true)
    private String restApiId;

    /**
     * @return REST API id that owns the resource. If no REST API is found, an error will be returned.
     * 
     */
    public String restApiId() {
        return this.restApiId;
    }

    private GetResourcePlainArgs() {}

    private GetResourcePlainArgs(GetResourcePlainArgs $) {
        this.path = $.path;
        this.restApiId = $.restApiId;
    }

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

    public static final class Builder {
        private GetResourcePlainArgs $;

        public Builder() {
            $ = new GetResourcePlainArgs();
        }

        public Builder(GetResourcePlainArgs defaults) {
            $ = new GetResourcePlainArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param path Full path of the resource.  If no path is found, an error will be returned.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            $.path = path;
            return this;
        }

        /**
         * @param restApiId REST API id that owns the resource. If no REST API is found, an error will be returned.
         * 
         * @return builder
         * 
         */
        public Builder restApiId(String restApiId) {
            $.restApiId = restApiId;
            return this;
        }

        public GetResourcePlainArgs build() {
            if ($.path == null) {
                throw new MissingRequiredPropertyException("GetResourcePlainArgs", "path");
            }
            if ($.restApiId == null) {
                throw new MissingRequiredPropertyException("GetResourcePlainArgs", "restApiId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy