io.github.cdklabs.generative_ai_cdk_constructs.BaseClass Maven / Gradle / Ivy
Show all versions of generative-ai-cdk-constructs Show documentation
package io.github.cdklabs.generative_ai_cdk_constructs;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-23T18:35:37.261Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.generative_ai_cdk_constructs.$Module.class, fqn = "@cdklabs/generative-ai-cdk-constructs.BaseClass")
public class BaseClass extends software.constructs.Construct {
protected BaseClass(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected BaseClass(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public BaseClass(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id) {
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") });
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
protected void addObservabilityToConstruct(final @org.jetbrains.annotations.NotNull io.github.cdklabs.generative_ai_cdk_constructs.BaseClassProps props) {
software.amazon.jsii.Kernel.call(this, "addObservabilityToConstruct", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* @param props This parameter is required.
* @param scope This parameter is required.
* @param lambdaFunctions This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
protected void updateConstructUsageMetricCode(final @org.jetbrains.annotations.NotNull io.github.cdklabs.generative_ai_cdk_constructs.BaseClassProps props, final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.util.List lambdaFunctions) {
software.amazon.jsii.Kernel.call(this, "updateConstructUsageMetricCode", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(props, "props is required"), java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(lambdaFunctions, "lambdaFunctions is required") });
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
protected void updateEnvSuffix(final @org.jetbrains.annotations.NotNull io.github.cdklabs.generative_ai_cdk_constructs.BaseClassProps props) {
software.amazon.jsii.Kernel.call(this, "updateEnvSuffix", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) Record<string, number> , maps construct name with number of deployments.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
protected static @org.jetbrains.annotations.NotNull java.util.Map getUsageMetricMap() {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.JsiiObject.jsiiStaticGet(io.github.cdklabs.generative_ai_cdk_constructs.BaseClass.class, "usageMetricMap", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class))));
}
/**
* (experimental) Record<string, number> , maps construct name with number of deployments.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
protected static void setUsageMetricMap(final @org.jetbrains.annotations.NotNull java.util.Map value) {
software.amazon.jsii.JsiiObject.jsiiStaticSet(io.github.cdklabs.generative_ai_cdk_constructs.BaseClass.class, "usageMetricMap", java.util.Objects.requireNonNull(value, "usageMetricMap is required"));
}
/**
* (experimental) construct usage metric , added in template description.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String getConstructUsageMetric() {
return software.amazon.jsii.Kernel.get(this, "constructUsageMetric", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* (experimental) enable disable xray tracing.
*
* Default: - True
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.Boolean getEnablexray() {
return software.amazon.jsii.Kernel.get(this, "enablexray", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
}
/**
* (experimental) enable disable xray tracing.
*
* Default: - True
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void setEnablexray(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) {
software.amazon.jsii.Kernel.set(this, "enablexray", java.util.Objects.requireNonNull(value, "enablexray is required"));
}
/**
* (experimental) Default log config for all constructs.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.FieldLogLevel getFieldLogLevel() {
return software.amazon.jsii.Kernel.get(this, "fieldLogLevel", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.FieldLogLevel.class));
}
/**
* (experimental) Default log config for all constructs.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void setFieldLogLevel(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.FieldLogLevel value) {
software.amazon.jsii.Kernel.set(this, "fieldLogLevel", java.util.Objects.requireNonNull(value, "fieldLogLevel is required"));
}
/**
* (experimental) enable disable lambda tracing.
*
* Default: - Active
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.lambda.Tracing getLambdaTracing() {
return software.amazon.jsii.Kernel.get(this, "lambdaTracing", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.lambda.Tracing.class));
}
/**
* (experimental) enable disable lambda tracing.
*
* Default: - Active
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void setLambdaTracing(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.lambda.Tracing value) {
software.amazon.jsii.Kernel.set(this, "lambdaTracing", java.util.Objects.requireNonNull(value, "lambdaTracing is required"));
}
/**
* (experimental) Default log retention config for all constructs.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.logs.RetentionDays getRetention() {
return software.amazon.jsii.Kernel.get(this, "retention", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.logs.RetentionDays.class));
}
/**
* (experimental) Default log retention config for all constructs.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void setRetention(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.logs.RetentionDays value) {
software.amazon.jsii.Kernel.set(this, "retention", java.util.Objects.requireNonNull(value, "retention is required"));
}
/**
* (experimental) Value will be appended to resources name.
*
* Default: - _dev
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String getStage() {
return software.amazon.jsii.Kernel.get(this, "stage", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* (experimental) Value will be appended to resources name.
*
* Default: - _dev
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void setStage(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "stage", java.util.Objects.requireNonNull(value, "stage is required"));
}
}