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

com.github.mmuller88.cdkAlpsSpecRestApi.AlpsSpecRestApi Maven / Gradle / Ivy

There is a newer version: 0.1.10
Show newest version
package com.github.mmuller88.cdkAlpsSpecRestApi;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.16.0 (build 99a3413)", date = "2020-12-20T12:38:15.416Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = com.github.mmuller88.cdkAlpsSpecRestApi.$Module.class, fqn = "cdk-alps-spec-rest-api.AlpsSpecRestApi")
public class AlpsSpecRestApi extends software.amazon.awscdk.core.Construct {

    protected AlpsSpecRestApi(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected AlpsSpecRestApi(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * @param scope This parameter is required.
     * @param id This parameter is required.
     * @param props This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public AlpsSpecRestApi(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.github.mmuller88.cdkAlpsSpecRestApi.AlpsSpecRestApiProps props) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public @org.jetbrains.annotations.Nullable java.util.Map getOperationIdLambdaMapping() {
        return java.util.Optional.ofNullable((java.util.Map)(software.amazon.jsii.Kernel.get(this, "operationIdLambdaMapping", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))))).map(java.util.Collections::unmodifiableMap).orElse(null);
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public void setOperationIdLambdaMapping(final @org.jetbrains.annotations.Nullable java.util.Map value) {
        software.amazon.jsii.Kernel.set(this, "operationIdLambdaMapping", value);
    }

    /**
     * A fluent builder for {@link com.github.mmuller88.cdkAlpsSpecRestApi.AlpsSpecRestApi}.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public static final class Builder implements software.amazon.jsii.Builder {
        /**
         * @return a new instance of {@link Builder}.
         * @param scope This parameter is required.
         * @param id This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public static Builder create(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) {
            return new Builder(scope, id);
        }

        private final software.amazon.awscdk.core.Construct scope;
        private final java.lang.String id;
        private final com.github.mmuller88.cdkAlpsSpecRestApi.AlpsSpecRestApiProps.Builder props;

        private Builder(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) {
            this.scope = scope;
            this.id = id;
            this.props = new com.github.mmuller88.cdkAlpsSpecRestApi.AlpsSpecRestApiProps.Builder();
        }

        /**
         * ALPS Spec File.
         * 

* Must be YAML. *

* @return {@code this} * @param alpsSpecFile ALPS Spec File. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder alpsSpecFile(final java.lang.String alpsSpecFile) { this.props.alpsSpecFile(alpsSpecFile); return this; } /** * Optional mapping from openApi spec operationId to Lambda name. *

* Per default it uses a Lambda integration with using the openApi spec operationId property as Lambda name *

* @return {@code this} * @param operationIdLambdaMapping Optional mapping from openApi spec operationId to Lambda name. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder operationIdLambdaMapping(final java.util.Map operationIdLambdaMapping) { this.props.operationIdLambdaMapping(operationIdLambdaMapping); return this; } /** * @returns a newly built instance of {@link com.github.mmuller88.cdkAlpsSpecRestApi.AlpsSpecRestApi}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public com.github.mmuller88.cdkAlpsSpecRestApi.AlpsSpecRestApi build() { return new com.github.mmuller88.cdkAlpsSpecRestApi.AlpsSpecRestApi( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy