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

com.pulumi.aws.apigatewayv2.ApiMappingArgs Maven / Gradle / Ivy

Go to download

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

There is a newer version: 6.60.0-alpha.1731982519
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.aws.apigatewayv2;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApiMappingArgs Empty = new ApiMappingArgs();

    /**
     * API identifier.
     * 
     */
    @Import(name="apiId", required=true)
    private Output apiId;

    /**
     * @return API identifier.
     * 
     */
    public Output apiId() {
        return 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 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> apiMappingKey() {
        return Optional.ofNullable(this.apiMappingKey);
    }

    /**
     * Domain name. Use the `aws.apigatewayv2.DomainName` resource to configure a domain name.
     * 
     */
    @Import(name="domainName", required=true)
    private Output domainName;

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

    /**
     * API stage. Use the `aws.apigatewayv2.Stage` resource to configure an API stage.
     * 
     */
    @Import(name="stage", required=true)
    private Output stage;

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

    private ApiMappingArgs() {}

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

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

    public static final class Builder {
        private ApiMappingArgs $;

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

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

        /**
         * @param apiId API identifier.
         * 
         * @return builder
         * 
         */
        public Builder apiId(Output 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 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(Output 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(Output 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 ApiMappingArgs build() {
            if ($.apiId == null) {
                throw new MissingRequiredPropertyException("ApiMappingArgs", "apiId");
            }
            if ($.domainName == null) {
                throw new MissingRequiredPropertyException("ApiMappingArgs", "domainName");
            }
            if ($.stage == null) {
                throw new MissingRequiredPropertyException("ApiMappingArgs", "stage");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy