com.pepperize.cdk.apigateway_swagger_ui.SwaggerUi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk-apigateway-swagger-ui Show documentation
Show all versions of cdk-apigateway-swagger-ui Show documentation
Add SwaggerUI to your AWS Apigateway RestApi
package com.pepperize.cdk.apigateway_swagger_ui;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.99.0 (build 8f757e4)", date = "2024-06-06T06:52:27.024Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = com.pepperize.cdk.apigateway_swagger_ui.$Module.class, fqn = "@pepperize/cdk-apigateway-swagger-ui.SwaggerUi")
public class SwaggerUi extends software.constructs.Construct {
protected SwaggerUi(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected SwaggerUi(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 SwaggerUi(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.pepperize.cdk.apigateway_swagger_ui.SwaggerUiProps 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") });
}
/**
* A fluent builder for {@link com.pepperize.cdk.apigateway_swagger_ui.SwaggerUi}.
*/
@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.constructs.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.constructs.Construct scope;
private final java.lang.String id;
private final com.pepperize.cdk.apigateway_swagger_ui.SwaggerUiProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new com.pepperize.cdk.apigateway_swagger_ui.SwaggerUiProps.Builder();
}
/**
* @return {@code this}
* @param resource This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder resource(final software.amazon.awscdk.services.apigateway.IResource resource) {
this.props.resource(resource);
return this;
}
/**
* @return a newly built instance of {@link com.pepperize.cdk.apigateway_swagger_ui.SwaggerUi}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public com.pepperize.cdk.apigateway_swagger_ui.SwaggerUi build() {
return new com.pepperize.cdk.apigateway_swagger_ui.SwaggerUi(
this.scope,
this.id,
this.props.build()
);
}
}
}