// *** 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.aws.apigateway.inputs.MethodSettingsSettingsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class MethodSettingsState extends com.pulumi.resources.ResourceArgs {

    public static final MethodSettingsState Empty = new MethodSettingsState();

    /**
     * Method path defined as `{resource_path}/{http_method}` for an individual method override, or `*{@literal /}*` for overriding all methods in the stage. Ensure to trim any leading forward slashes in the path (e.g., `trimprefix(aws_api_gateway_resource.example.path, &#34;/&#34;)`).
     * 
     */
    @Import(name="methodPath")
    private @Nullable Output<String> methodPath;

    /**
     * @return Method path defined as `{resource_path}/{http_method}` for an individual method override, or `*{@literal /}*` for overriding all methods in the stage. Ensure to trim any leading forward slashes in the path (e.g., `trimprefix(aws_api_gateway_resource.example.path, &#34;/&#34;)`).
     * 
     */
    public Optional<Output<String>> methodPath() {
        return Optional.ofNullable(this.methodPath);
    }

    /**
     * ID of the REST API
     * 
     */
    @Import(name="restApi")
    private @Nullable Output<String> restApi;

    /**
     * @return ID of the REST API
     * 
     */
    public Optional<Output<String>> restApi() {
        return Optional.ofNullable(this.restApi);
    }

    /**
     * Settings block, see below.
     * 
     */
    @Import(name="settings")
    private @Nullable Output<MethodSettingsSettingsArgs> settings;

    /**
     * @return Settings block, see below.
     * 
     */
    public Optional<Output<MethodSettingsSettingsArgs>> settings() {
        return Optional.ofNullable(this.settings);
    }

    /**
     * Name of the stage
     * 
     */
    @Import(name="stageName")
    private @Nullable Output<String> stageName;

    /**
     * @return Name of the stage
     * 
     */
    public Optional<Output<String>> stageName() {
        return Optional.ofNullable(this.stageName);
    }

    private MethodSettingsState() {}

    private MethodSettingsState(MethodSettingsState $) {
        this.methodPath = $.methodPath;
        this.restApi = $.restApi;
        this.settings = $.settings;
        this.stageName = $.stageName;
    }

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

    public static final class Builder {
        private MethodSettingsState $;

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

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

        /**
         * @param methodPath Method path defined as `{resource_path}/{http_method}` for an individual method override, or `*{@literal /}*` for overriding all methods in the stage. Ensure to trim any leading forward slashes in the path (e.g., `trimprefix(aws_api_gateway_resource.example.path, &#34;/&#34;)`).
         * 
         * @return builder
         * 
         */
        public Builder methodPath(@Nullable Output<String> methodPath) {
            $.methodPath = methodPath;
            return this;
        }

        /**
         * @param methodPath Method path defined as `{resource_path}/{http_method}` for an individual method override, or `*{@literal /}*` for overriding all methods in the stage. Ensure to trim any leading forward slashes in the path (e.g., `trimprefix(aws_api_gateway_resource.example.path, &#34;/&#34;)`).
         * 
         * @return builder
         * 
         */
        public Builder methodPath(String methodPath) {
            return methodPath(Output.of(methodPath));
        }

        /**
         * @param restApi ID of the REST API
         * 
         * @return builder
         * 
         */
        public Builder restApi(@Nullable Output<String> restApi) {
            $.restApi = restApi;
            return this;
        }

        /**
         * @param restApi ID of the REST API
         * 
         * @return builder
         * 
         */
        public Builder restApi(String restApi) {
            return restApi(Output.of(restApi));
        }

        /**
         * @param settings Settings block, see below.
         * 
         * @return builder
         * 
         */
        public Builder settings(@Nullable Output<MethodSettingsSettingsArgs> settings) {
            $.settings = settings;
            return this;
        }

        /**
         * @param settings Settings block, see below.
         * 
         * @return builder
         * 
         */
        public Builder settings(MethodSettingsSettingsArgs settings) {
            return settings(Output.of(settings));
        }

        /**
         * @param stageName Name of the stage
         * 
         * @return builder
         * 
         */
        public Builder stageName(@Nullable Output<String> stageName) {
            $.stageName = stageName;
            return this;
        }

        /**
         * @param stageName Name of the stage
         * 
         * @return builder
         * 
         */
        public Builder stageName(String stageName) {
            return stageName(Output.of(stageName));
        }

        public MethodSettingsState build() {
            return $;
        }
    }

}
