// *** 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.apigatewayv2.inputs;

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 ApiMappingState extends com.pulumi.resources.ResourceArgs {

    public static final ApiMappingState Empty = new ApiMappingState();

    /**
     * API identifier.
     * 
     */
    @Import(name="apiId")
    private @Nullable Output<String> apiId;

    /**
     * @return API identifier.
     * 
     */
    public Optional<Output<String>> apiId() {
        return Optional.ofNullable(this.apiId);
    }

    /**
     * The API mapping key. Refer to [REST API](https://docs.aws.amazon.com/apigateway/latest/developerguide/rest-api-mappings.html), [HTTP API](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-mappings.html) or [WebSocket API](https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-mappings.html).
     * 
     */
    @Import(name="apiMappingKey")
    private @Nullable Output<String> apiMappingKey;

    /**
     * @return The API mapping key. Refer to [REST API](https://docs.aws.amazon.com/apigateway/latest/developerguide/rest-api-mappings.html), [HTTP API](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-mappings.html) or [WebSocket API](https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-mappings.html).
     * 
     */
    public Optional<Output<String>> apiMappingKey() {
        return Optional.ofNullable(this.apiMappingKey);
    }

    /**
     * Domain name. Use the `aws.apigatewayv2.DomainName` resource to configure a domain name.
     * 
     */
    @Import(name="domainName")
    private @Nullable Output<String> domainName;

    /**
     * @return Domain name. Use the `aws.apigatewayv2.DomainName` resource to configure a domain name.
     * 
     */
    public Optional<Output<String>> domainName() {
        return Optional.ofNullable(this.domainName);
    }

    /**
     * API stage. Use the `aws.apigatewayv2.Stage` resource to configure an API stage.
     * 
     */
    @Import(name="stage")
    private @Nullable Output<String> stage;

    /**
     * @return API stage. Use the `aws.apigatewayv2.Stage` resource to configure an API stage.
     * 
     */
    public Optional<Output<String>> stage() {
        return Optional.ofNullable(this.stage);
    }

    private ApiMappingState() {}

    private ApiMappingState(ApiMappingState $) {
        this.apiId = $.apiId;
        this.apiMappingKey = $.apiMappingKey;
        this.domainName = $.domainName;
        this.stage = $.stage;
    }

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

    public static final class Builder {
        private ApiMappingState $;

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

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

        /**
         * @param apiId API identifier.
         * 
         * @return builder
         * 
         */
        public Builder apiId(@Nullable Output<String> apiId) {
            $.apiId = apiId;
            return this;
        }

        /**
         * @param apiId API identifier.
         * 
         * @return builder
         * 
         */
        public Builder apiId(String apiId) {
            return apiId(Output.of(apiId));
        }

        /**
         * @param apiMappingKey The API mapping key. Refer to [REST API](https://docs.aws.amazon.com/apigateway/latest/developerguide/rest-api-mappings.html), [HTTP API](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-mappings.html) or [WebSocket API](https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-mappings.html).
         * 
         * @return builder
         * 
         */
        public Builder apiMappingKey(@Nullable Output<String> apiMappingKey) {
            $.apiMappingKey = apiMappingKey;
            return this;
        }

        /**
         * @param apiMappingKey The API mapping key. Refer to [REST API](https://docs.aws.amazon.com/apigateway/latest/developerguide/rest-api-mappings.html), [HTTP API](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-mappings.html) or [WebSocket API](https://docs.aws.amazon.com/apigateway/latest/developerguide/websocket-api-mappings.html).
         * 
         * @return builder
         * 
         */
        public Builder apiMappingKey(String apiMappingKey) {
            return apiMappingKey(Output.of(apiMappingKey));
        }

        /**
         * @param domainName Domain name. Use the `aws.apigatewayv2.DomainName` resource to configure a domain name.
         * 
         * @return builder
         * 
         */
        public Builder domainName(@Nullable Output<String> domainName) {
            $.domainName = domainName;
            return this;
        }

        /**
         * @param domainName Domain name. Use the `aws.apigatewayv2.DomainName` resource to configure a domain name.
         * 
         * @return builder
         * 
         */
        public Builder domainName(String domainName) {
            return domainName(Output.of(domainName));
        }

        /**
         * @param stage API stage. Use the `aws.apigatewayv2.Stage` resource to configure an API stage.
         * 
         * @return builder
         * 
         */
        public Builder stage(@Nullable Output<String> stage) {
            $.stage = stage;
            return this;
        }

        /**
         * @param stage API stage. Use the `aws.apigatewayv2.Stage` resource to configure an API stage.
         * 
         * @return builder
         * 
         */
        public Builder stage(String stage) {
            return stage(Output.of(stage));
        }

        public ApiMappingState build() {
            return $;
        }
    }

}
