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

com.aliyun.ros.cdk.fc.FunctionProps Maven / Gradle / Ivy

Go to download

Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com

The newest version!
package com.aliyun.ros.cdk.fc;

/**
 * Properties for defining a Function.
 * 

* See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-fc-function */ @javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:13.452Z") @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.fc.$Module.class, fqn = "@alicloud/ros-cdk-fc.FunctionProps") @software.amazon.jsii.Jsii.Proxy(FunctionProps.Jsii$Proxy.class) public interface FunctionProps extends software.amazon.jsii.JsiiSerializable { /** * Property functionName: Function name. */ @org.jetbrains.annotations.NotNull java.lang.Object getFunctionName(); /** * Property handler: The function execution entry point. */ @org.jetbrains.annotations.NotNull java.lang.Object getHandler(); /** * Property runtime: The function runtime environment. *

* Supporting nodejs16、nodejs14、nodejs12、nodejs10、nodejs8、nodejs6、nodejs4.4、python3.10、python3.9、python3、python2.7、java11、java8、go1、php7.2、dotnetcore3.1、dotnetcore2.1、custom.debian10、custom和custom-container and so on */ @org.jetbrains.annotations.NotNull java.lang.Object getRuntime(); /** * Property serviceName: Service name. */ @org.jetbrains.annotations.NotNull java.lang.Object getServiceName(); /** * Property asyncConfiguration: Configuration of asynchronous function calls. */ default @org.jetbrains.annotations.Nullable java.lang.Object getAsyncConfiguration() { return null; } /** * Property caPort: Custom runtime and custom container runtime dedicated fields, which represent the port that the started custom http server listens to. *

* The default value is 9000 */ default @org.jetbrains.annotations.Nullable java.lang.Object getCaPort() { return null; } /** * Property code: The code that contains the function implementation. */ default @org.jetbrains.annotations.Nullable java.lang.Object getCode() { return null; } /** * Property cpu: The number of vCPUs of the function. *

* The value must be a multiple of 0.05. */ default @org.jetbrains.annotations.Nullable java.lang.Object getCpu() { return null; } /** * Property customContainerConfig: Custom container runtime related configuration. *

* After configuration, the function can be replaced with a custom container to execute the function */ default @org.jetbrains.annotations.Nullable java.lang.Object getCustomContainerConfig() { return null; } /** * Property customDns: The custom DNS configurations of the function. */ default @org.jetbrains.annotations.Nullable java.lang.Object getCustomDns() { return null; } /** * Property customHealthCheckConfig: The health check configurations for the custom runtime and custom container. */ default @org.jetbrains.annotations.Nullable java.lang.Object getCustomHealthCheckConfig() { return null; } /** * Property customRuntimeConfig: Custom runtime related configuration. */ default @org.jetbrains.annotations.Nullable java.lang.Object getCustomRuntimeConfig() { return null; } /** * Property description: Function description. */ default @org.jetbrains.annotations.Nullable java.lang.Object getDescription() { return null; } /** * Property diskSize: The disk size of the function. *

* Unit: MB. Valid values: 512 and 10240. */ default @org.jetbrains.annotations.Nullable java.lang.Object getDiskSize() { return null; } /** * Property environmentVariables: The environment variable set for the function, you can get the value of the environment variable in the function. */ default @org.jetbrains.annotations.Nullable java.lang.Object getEnvironmentVariables() { return null; } /** * Property gpuMemorySize: The GPU memory capacity for the function. *

* Unit: MB. The value must be a multiple of 1,024. */ default @org.jetbrains.annotations.Nullable java.lang.Object getGpuMemorySize() { return null; } /** * Property initializationTimeout: the max execution time of the initializer, in second. */ default @org.jetbrains.annotations.Nullable java.lang.Object getInitializationTimeout() { return null; } /** * Property initializer: the entry point of the initializer. */ default @org.jetbrains.annotations.Nullable java.lang.Object getInitializer() { return null; } /** * Property instanceConcurrency: Function instance concurrency. *

* Value can be between 1 to 100. */ default @org.jetbrains.annotations.Nullable java.lang.Object getInstanceConcurrency() { return null; } /** * Property instanceLifecycleConfig: The configuration of the instance lifecycle function. */ default @org.jetbrains.annotations.Nullable java.lang.Object getInstanceLifecycleConfig() { return null; } /** * Property instanceSoftConcurrency: The soft concurrency of the instance. *

* You can use this parameter to implement graceful scale-up of instances. If the number of concurrent requests on an instance is greater than the value of soft concurrency, an instance scale-up is triggered. For example, if your instance requires a long time to start, you can specify a suitable soft concurrency to start the instance in advance.The value must be less than or equal to that of the instanceConcurrency parameter. */ default @org.jetbrains.annotations.Nullable java.lang.Object getInstanceSoftConcurrency() { return null; } /** * Property instanceType: Instance type. *

* Value:e1: flexible instance. Memory size between 128 and 3072c1: performance instance. Memory size allow values are 4096, 8192, 16384 and 32768 */ default @org.jetbrains.annotations.Nullable java.lang.Object getInstanceType() { return null; } /** * Property memorySize: The amount of memory that’s used to run function, in MB. *

* Function Compute uses this value to allocate CPU resources proportionally. Defaults to 128 MB. It can be multiple of 64 MB and between 128 MB and 3072 MB. */ default @org.jetbrains.annotations.Nullable java.lang.Object getMemorySize() { return null; } /** * Property timeout: The maximum time duration a function can run, in seconds. *

* After which Function Compute terminates the execution. Defaults to 3 seconds, and can be between 1 to 86400 seconds. */ default @org.jetbrains.annotations.Nullable java.lang.Object getTimeout() { return null; } /** * @return a {@link Builder} of {@link FunctionProps} */ static Builder builder() { return new Builder(); } /** * A builder for {@link FunctionProps} */ public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object functionName; java.lang.Object handler; java.lang.Object runtime; java.lang.Object serviceName; java.lang.Object asyncConfiguration; java.lang.Object caPort; java.lang.Object code; java.lang.Object cpu; java.lang.Object customContainerConfig; java.lang.Object customDns; java.lang.Object customHealthCheckConfig; java.lang.Object customRuntimeConfig; java.lang.Object description; java.lang.Object diskSize; java.lang.Object environmentVariables; java.lang.Object gpuMemorySize; java.lang.Object initializationTimeout; java.lang.Object initializer; java.lang.Object instanceConcurrency; java.lang.Object instanceLifecycleConfig; java.lang.Object instanceSoftConcurrency; java.lang.Object instanceType; java.lang.Object memorySize; java.lang.Object timeout; /** * Sets the value of {@link FunctionProps#getFunctionName} * @param functionName Property functionName: Function name. This parameter is required. * @return {@code this} */ public Builder functionName(java.lang.String functionName) { this.functionName = functionName; return this; } /** * Sets the value of {@link FunctionProps#getFunctionName} * @param functionName Property functionName: Function name. This parameter is required. * @return {@code this} */ public Builder functionName(com.aliyun.ros.cdk.core.IResolvable functionName) { this.functionName = functionName; return this; } /** * Sets the value of {@link FunctionProps#getHandler} * @param handler Property handler: The function execution entry point. This parameter is required. * @return {@code this} */ public Builder handler(java.lang.String handler) { this.handler = handler; return this; } /** * Sets the value of {@link FunctionProps#getHandler} * @param handler Property handler: The function execution entry point. This parameter is required. * @return {@code this} */ public Builder handler(com.aliyun.ros.cdk.core.IResolvable handler) { this.handler = handler; return this; } /** * Sets the value of {@link FunctionProps#getRuntime} * @param runtime Property runtime: The function runtime environment. This parameter is required. * Supporting nodejs16、nodejs14、nodejs12、nodejs10、nodejs8、nodejs6、nodejs4.4、python3.10、python3.9、python3、python2.7、java11、java8、go1、php7.2、dotnetcore3.1、dotnetcore2.1、custom.debian10、custom和custom-container and so on * @return {@code this} */ public Builder runtime(java.lang.String runtime) { this.runtime = runtime; return this; } /** * Sets the value of {@link FunctionProps#getRuntime} * @param runtime Property runtime: The function runtime environment. This parameter is required. * Supporting nodejs16、nodejs14、nodejs12、nodejs10、nodejs8、nodejs6、nodejs4.4、python3.10、python3.9、python3、python2.7、java11、java8、go1、php7.2、dotnetcore3.1、dotnetcore2.1、custom.debian10、custom和custom-container and so on * @return {@code this} */ public Builder runtime(com.aliyun.ros.cdk.core.IResolvable runtime) { this.runtime = runtime; return this; } /** * Sets the value of {@link FunctionProps#getServiceName} * @param serviceName Property serviceName: Service name. This parameter is required. * @return {@code this} */ public Builder serviceName(java.lang.String serviceName) { this.serviceName = serviceName; return this; } /** * Sets the value of {@link FunctionProps#getServiceName} * @param serviceName Property serviceName: Service name. This parameter is required. * @return {@code this} */ public Builder serviceName(com.aliyun.ros.cdk.core.IResolvable serviceName) { this.serviceName = serviceName; return this; } /** * Sets the value of {@link FunctionProps#getAsyncConfiguration} * @param asyncConfiguration Property asyncConfiguration: Configuration of asynchronous function calls. * @return {@code this} */ public Builder asyncConfiguration(com.aliyun.ros.cdk.core.IResolvable asyncConfiguration) { this.asyncConfiguration = asyncConfiguration; return this; } /** * Sets the value of {@link FunctionProps#getAsyncConfiguration} * @param asyncConfiguration Property asyncConfiguration: Configuration of asynchronous function calls. * @return {@code this} */ public Builder asyncConfiguration(com.aliyun.ros.cdk.fc.RosFunction.AsyncConfigurationProperty asyncConfiguration) { this.asyncConfiguration = asyncConfiguration; return this; } /** * Sets the value of {@link FunctionProps#getCaPort} * @param caPort Property caPort: Custom runtime and custom container runtime dedicated fields, which represent the port that the started custom http server listens to. * The default value is 9000 * @return {@code this} */ public Builder caPort(java.lang.Number caPort) { this.caPort = caPort; return this; } /** * Sets the value of {@link FunctionProps#getCaPort} * @param caPort Property caPort: Custom runtime and custom container runtime dedicated fields, which represent the port that the started custom http server listens to. * The default value is 9000 * @return {@code this} */ public Builder caPort(com.aliyun.ros.cdk.core.IResolvable caPort) { this.caPort = caPort; return this; } /** * Sets the value of {@link FunctionProps#getCode} * @param code Property code: The code that contains the function implementation. * @return {@code this} */ public Builder code(com.aliyun.ros.cdk.core.IResolvable code) { this.code = code; return this; } /** * Sets the value of {@link FunctionProps#getCode} * @param code Property code: The code that contains the function implementation. * @return {@code this} */ public Builder code(com.aliyun.ros.cdk.fc.RosFunction.CodeProperty code) { this.code = code; return this; } /** * Sets the value of {@link FunctionProps#getCpu} * @param cpu Property cpu: The number of vCPUs of the function. * The value must be a multiple of 0.05. * @return {@code this} */ public Builder cpu(java.lang.Number cpu) { this.cpu = cpu; return this; } /** * Sets the value of {@link FunctionProps#getCpu} * @param cpu Property cpu: The number of vCPUs of the function. * The value must be a multiple of 0.05. * @return {@code this} */ public Builder cpu(com.aliyun.ros.cdk.core.IResolvable cpu) { this.cpu = cpu; return this; } /** * Sets the value of {@link FunctionProps#getCustomContainerConfig} * @param customContainerConfig Property customContainerConfig: Custom container runtime related configuration. * After configuration, the function can be replaced with a custom container to execute the function * @return {@code this} */ public Builder customContainerConfig(com.aliyun.ros.cdk.core.IResolvable customContainerConfig) { this.customContainerConfig = customContainerConfig; return this; } /** * Sets the value of {@link FunctionProps#getCustomContainerConfig} * @param customContainerConfig Property customContainerConfig: Custom container runtime related configuration. * After configuration, the function can be replaced with a custom container to execute the function * @return {@code this} */ public Builder customContainerConfig(com.aliyun.ros.cdk.fc.RosFunction.CustomContainerConfigProperty customContainerConfig) { this.customContainerConfig = customContainerConfig; return this; } /** * Sets the value of {@link FunctionProps#getCustomDns} * @param customDns Property customDns: The custom DNS configurations of the function. * @return {@code this} */ public Builder customDns(com.aliyun.ros.cdk.core.IResolvable customDns) { this.customDns = customDns; return this; } /** * Sets the value of {@link FunctionProps#getCustomDns} * @param customDns Property customDns: The custom DNS configurations of the function. * @return {@code this} */ public Builder customDns(com.aliyun.ros.cdk.fc.RosFunction.CustomDNSProperty customDns) { this.customDns = customDns; return this; } /** * Sets the value of {@link FunctionProps#getCustomHealthCheckConfig} * @param customHealthCheckConfig Property customHealthCheckConfig: The health check configurations for the custom runtime and custom container. * @return {@code this} */ public Builder customHealthCheckConfig(com.aliyun.ros.cdk.core.IResolvable customHealthCheckConfig) { this.customHealthCheckConfig = customHealthCheckConfig; return this; } /** * Sets the value of {@link FunctionProps#getCustomHealthCheckConfig} * @param customHealthCheckConfig Property customHealthCheckConfig: The health check configurations for the custom runtime and custom container. * @return {@code this} */ public Builder customHealthCheckConfig(com.aliyun.ros.cdk.fc.RosFunction.CustomHealthCheckConfigProperty customHealthCheckConfig) { this.customHealthCheckConfig = customHealthCheckConfig; return this; } /** * Sets the value of {@link FunctionProps#getCustomRuntimeConfig} * @param customRuntimeConfig Property customRuntimeConfig: Custom runtime related configuration. * @return {@code this} */ public Builder customRuntimeConfig(com.aliyun.ros.cdk.core.IResolvable customRuntimeConfig) { this.customRuntimeConfig = customRuntimeConfig; return this; } /** * Sets the value of {@link FunctionProps#getCustomRuntimeConfig} * @param customRuntimeConfig Property customRuntimeConfig: Custom runtime related configuration. * @return {@code this} */ public Builder customRuntimeConfig(com.aliyun.ros.cdk.fc.RosFunction.CustomRuntimeConfigProperty customRuntimeConfig) { this.customRuntimeConfig = customRuntimeConfig; return this; } /** * Sets the value of {@link FunctionProps#getDescription} * @param description Property description: Function description. * @return {@code this} */ public Builder description(java.lang.String description) { this.description = description; return this; } /** * Sets the value of {@link FunctionProps#getDescription} * @param description Property description: Function description. * @return {@code this} */ public Builder description(com.aliyun.ros.cdk.core.IResolvable description) { this.description = description; return this; } /** * Sets the value of {@link FunctionProps#getDiskSize} * @param diskSize Property diskSize: The disk size of the function. * Unit: MB. Valid values: 512 and 10240. * @return {@code this} */ public Builder diskSize(java.lang.Number diskSize) { this.diskSize = diskSize; return this; } /** * Sets the value of {@link FunctionProps#getDiskSize} * @param diskSize Property diskSize: The disk size of the function. * Unit: MB. Valid values: 512 and 10240. * @return {@code this} */ public Builder diskSize(com.aliyun.ros.cdk.core.IResolvable diskSize) { this.diskSize = diskSize; return this; } /** * Sets the value of {@link FunctionProps#getEnvironmentVariables} * @param environmentVariables Property environmentVariables: The environment variable set for the function, you can get the value of the environment variable in the function. * @return {@code this} */ public Builder environmentVariables(com.aliyun.ros.cdk.core.IResolvable environmentVariables) { this.environmentVariables = environmentVariables; return this; } /** * Sets the value of {@link FunctionProps#getEnvironmentVariables} * @param environmentVariables Property environmentVariables: The environment variable set for the function, you can get the value of the environment variable in the function. * @return {@code this} */ public Builder environmentVariables(java.util.Map environmentVariables) { this.environmentVariables = environmentVariables; return this; } /** * Sets the value of {@link FunctionProps#getGpuMemorySize} * @param gpuMemorySize Property gpuMemorySize: The GPU memory capacity for the function. * Unit: MB. The value must be a multiple of 1,024. * @return {@code this} */ public Builder gpuMemorySize(java.lang.Number gpuMemorySize) { this.gpuMemorySize = gpuMemorySize; return this; } /** * Sets the value of {@link FunctionProps#getGpuMemorySize} * @param gpuMemorySize Property gpuMemorySize: The GPU memory capacity for the function. * Unit: MB. The value must be a multiple of 1,024. * @return {@code this} */ public Builder gpuMemorySize(com.aliyun.ros.cdk.core.IResolvable gpuMemorySize) { this.gpuMemorySize = gpuMemorySize; return this; } /** * Sets the value of {@link FunctionProps#getInitializationTimeout} * @param initializationTimeout Property initializationTimeout: the max execution time of the initializer, in second. * @return {@code this} */ public Builder initializationTimeout(java.lang.Number initializationTimeout) { this.initializationTimeout = initializationTimeout; return this; } /** * Sets the value of {@link FunctionProps#getInitializationTimeout} * @param initializationTimeout Property initializationTimeout: the max execution time of the initializer, in second. * @return {@code this} */ public Builder initializationTimeout(com.aliyun.ros.cdk.core.IResolvable initializationTimeout) { this.initializationTimeout = initializationTimeout; return this; } /** * Sets the value of {@link FunctionProps#getInitializer} * @param initializer Property initializer: the entry point of the initializer. * @return {@code this} */ public Builder initializer(java.lang.String initializer) { this.initializer = initializer; return this; } /** * Sets the value of {@link FunctionProps#getInitializer} * @param initializer Property initializer: the entry point of the initializer. * @return {@code this} */ public Builder initializer(com.aliyun.ros.cdk.core.IResolvable initializer) { this.initializer = initializer; return this; } /** * Sets the value of {@link FunctionProps#getInstanceConcurrency} * @param instanceConcurrency Property instanceConcurrency: Function instance concurrency. * Value can be between 1 to 100. * @return {@code this} */ public Builder instanceConcurrency(java.lang.Number instanceConcurrency) { this.instanceConcurrency = instanceConcurrency; return this; } /** * Sets the value of {@link FunctionProps#getInstanceConcurrency} * @param instanceConcurrency Property instanceConcurrency: Function instance concurrency. * Value can be between 1 to 100. * @return {@code this} */ public Builder instanceConcurrency(com.aliyun.ros.cdk.core.IResolvable instanceConcurrency) { this.instanceConcurrency = instanceConcurrency; return this; } /** * Sets the value of {@link FunctionProps#getInstanceLifecycleConfig} * @param instanceLifecycleConfig Property instanceLifecycleConfig: The configuration of the instance lifecycle function. * @return {@code this} */ public Builder instanceLifecycleConfig(com.aliyun.ros.cdk.core.IResolvable instanceLifecycleConfig) { this.instanceLifecycleConfig = instanceLifecycleConfig; return this; } /** * Sets the value of {@link FunctionProps#getInstanceLifecycleConfig} * @param instanceLifecycleConfig Property instanceLifecycleConfig: The configuration of the instance lifecycle function. * @return {@code this} */ public Builder instanceLifecycleConfig(com.aliyun.ros.cdk.fc.RosFunction.InstanceLifecycleConfigProperty instanceLifecycleConfig) { this.instanceLifecycleConfig = instanceLifecycleConfig; return this; } /** * Sets the value of {@link FunctionProps#getInstanceSoftConcurrency} * @param instanceSoftConcurrency Property instanceSoftConcurrency: The soft concurrency of the instance. * You can use this parameter to implement graceful scale-up of instances. If the number of concurrent requests on an instance is greater than the value of soft concurrency, an instance scale-up is triggered. For example, if your instance requires a long time to start, you can specify a suitable soft concurrency to start the instance in advance.The value must be less than or equal to that of the instanceConcurrency parameter. * @return {@code this} */ public Builder instanceSoftConcurrency(java.lang.Number instanceSoftConcurrency) { this.instanceSoftConcurrency = instanceSoftConcurrency; return this; } /** * Sets the value of {@link FunctionProps#getInstanceSoftConcurrency} * @param instanceSoftConcurrency Property instanceSoftConcurrency: The soft concurrency of the instance. * You can use this parameter to implement graceful scale-up of instances. If the number of concurrent requests on an instance is greater than the value of soft concurrency, an instance scale-up is triggered. For example, if your instance requires a long time to start, you can specify a suitable soft concurrency to start the instance in advance.The value must be less than or equal to that of the instanceConcurrency parameter. * @return {@code this} */ public Builder instanceSoftConcurrency(com.aliyun.ros.cdk.core.IResolvable instanceSoftConcurrency) { this.instanceSoftConcurrency = instanceSoftConcurrency; return this; } /** * Sets the value of {@link FunctionProps#getInstanceType} * @param instanceType Property instanceType: Instance type. * Value:e1: flexible instance. Memory size between 128 and 3072c1: performance instance. Memory size allow values are 4096, 8192, 16384 and 32768 * @return {@code this} */ public Builder instanceType(java.lang.String instanceType) { this.instanceType = instanceType; return this; } /** * Sets the value of {@link FunctionProps#getInstanceType} * @param instanceType Property instanceType: Instance type. * Value:e1: flexible instance. Memory size between 128 and 3072c1: performance instance. Memory size allow values are 4096, 8192, 16384 and 32768 * @return {@code this} */ public Builder instanceType(com.aliyun.ros.cdk.core.IResolvable instanceType) { this.instanceType = instanceType; return this; } /** * Sets the value of {@link FunctionProps#getMemorySize} * @param memorySize Property memorySize: The amount of memory that’s used to run function, in MB. * Function Compute uses this value to allocate CPU resources proportionally. Defaults to 128 MB. It can be multiple of 64 MB and between 128 MB and 3072 MB. * @return {@code this} */ public Builder memorySize(java.lang.Number memorySize) { this.memorySize = memorySize; return this; } /** * Sets the value of {@link FunctionProps#getMemorySize} * @param memorySize Property memorySize: The amount of memory that’s used to run function, in MB. * Function Compute uses this value to allocate CPU resources proportionally. Defaults to 128 MB. It can be multiple of 64 MB and between 128 MB and 3072 MB. * @return {@code this} */ public Builder memorySize(com.aliyun.ros.cdk.core.IResolvable memorySize) { this.memorySize = memorySize; return this; } /** * Sets the value of {@link FunctionProps#getTimeout} * @param timeout Property timeout: The maximum time duration a function can run, in seconds. * After which Function Compute terminates the execution. Defaults to 3 seconds, and can be between 1 to 86400 seconds. * @return {@code this} */ public Builder timeout(java.lang.Number timeout) { this.timeout = timeout; return this; } /** * Sets the value of {@link FunctionProps#getTimeout} * @param timeout Property timeout: The maximum time duration a function can run, in seconds. * After which Function Compute terminates the execution. Defaults to 3 seconds, and can be between 1 to 86400 seconds. * @return {@code this} */ public Builder timeout(com.aliyun.ros.cdk.core.IResolvable timeout) { this.timeout = timeout; return this; } /** * Builds the configured instance. * @return a new instance of {@link FunctionProps} * @throws NullPointerException if any required attribute was not provided */ @Override public FunctionProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link FunctionProps} */ @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements FunctionProps { private final java.lang.Object functionName; private final java.lang.Object handler; private final java.lang.Object runtime; private final java.lang.Object serviceName; private final java.lang.Object asyncConfiguration; private final java.lang.Object caPort; private final java.lang.Object code; private final java.lang.Object cpu; private final java.lang.Object customContainerConfig; private final java.lang.Object customDns; private final java.lang.Object customHealthCheckConfig; private final java.lang.Object customRuntimeConfig; private final java.lang.Object description; private final java.lang.Object diskSize; private final java.lang.Object environmentVariables; private final java.lang.Object gpuMemorySize; private final java.lang.Object initializationTimeout; private final java.lang.Object initializer; private final java.lang.Object instanceConcurrency; private final java.lang.Object instanceLifecycleConfig; private final java.lang.Object instanceSoftConcurrency; private final java.lang.Object instanceType; private final java.lang.Object memorySize; private final java.lang.Object timeout; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.functionName = software.amazon.jsii.Kernel.get(this, "functionName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.handler = software.amazon.jsii.Kernel.get(this, "handler", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.runtime = software.amazon.jsii.Kernel.get(this, "runtime", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.serviceName = software.amazon.jsii.Kernel.get(this, "serviceName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.asyncConfiguration = software.amazon.jsii.Kernel.get(this, "asyncConfiguration", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.caPort = software.amazon.jsii.Kernel.get(this, "caPort", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.code = software.amazon.jsii.Kernel.get(this, "code", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.cpu = software.amazon.jsii.Kernel.get(this, "cpu", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.customContainerConfig = software.amazon.jsii.Kernel.get(this, "customContainerConfig", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.customDns = software.amazon.jsii.Kernel.get(this, "customDns", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.customHealthCheckConfig = software.amazon.jsii.Kernel.get(this, "customHealthCheckConfig", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.customRuntimeConfig = software.amazon.jsii.Kernel.get(this, "customRuntimeConfig", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.description = software.amazon.jsii.Kernel.get(this, "description", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.diskSize = software.amazon.jsii.Kernel.get(this, "diskSize", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.environmentVariables = software.amazon.jsii.Kernel.get(this, "environmentVariables", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.gpuMemorySize = software.amazon.jsii.Kernel.get(this, "gpuMemorySize", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.initializationTimeout = software.amazon.jsii.Kernel.get(this, "initializationTimeout", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.initializer = software.amazon.jsii.Kernel.get(this, "initializer", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.instanceConcurrency = software.amazon.jsii.Kernel.get(this, "instanceConcurrency", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.instanceLifecycleConfig = software.amazon.jsii.Kernel.get(this, "instanceLifecycleConfig", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.instanceSoftConcurrency = software.amazon.jsii.Kernel.get(this, "instanceSoftConcurrency", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.instanceType = software.amazon.jsii.Kernel.get(this, "instanceType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.memorySize = software.amazon.jsii.Kernel.get(this, "memorySize", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.timeout = software.amazon.jsii.Kernel.get(this, "timeout", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.functionName = java.util.Objects.requireNonNull(builder.functionName, "functionName is required"); this.handler = java.util.Objects.requireNonNull(builder.handler, "handler is required"); this.runtime = java.util.Objects.requireNonNull(builder.runtime, "runtime is required"); this.serviceName = java.util.Objects.requireNonNull(builder.serviceName, "serviceName is required"); this.asyncConfiguration = builder.asyncConfiguration; this.caPort = builder.caPort; this.code = builder.code; this.cpu = builder.cpu; this.customContainerConfig = builder.customContainerConfig; this.customDns = builder.customDns; this.customHealthCheckConfig = builder.customHealthCheckConfig; this.customRuntimeConfig = builder.customRuntimeConfig; this.description = builder.description; this.diskSize = builder.diskSize; this.environmentVariables = builder.environmentVariables; this.gpuMemorySize = builder.gpuMemorySize; this.initializationTimeout = builder.initializationTimeout; this.initializer = builder.initializer; this.instanceConcurrency = builder.instanceConcurrency; this.instanceLifecycleConfig = builder.instanceLifecycleConfig; this.instanceSoftConcurrency = builder.instanceSoftConcurrency; this.instanceType = builder.instanceType; this.memorySize = builder.memorySize; this.timeout = builder.timeout; } @Override public final java.lang.Object getFunctionName() { return this.functionName; } @Override public final java.lang.Object getHandler() { return this.handler; } @Override public final java.lang.Object getRuntime() { return this.runtime; } @Override public final java.lang.Object getServiceName() { return this.serviceName; } @Override public final java.lang.Object getAsyncConfiguration() { return this.asyncConfiguration; } @Override public final java.lang.Object getCaPort() { return this.caPort; } @Override public final java.lang.Object getCode() { return this.code; } @Override public final java.lang.Object getCpu() { return this.cpu; } @Override public final java.lang.Object getCustomContainerConfig() { return this.customContainerConfig; } @Override public final java.lang.Object getCustomDns() { return this.customDns; } @Override public final java.lang.Object getCustomHealthCheckConfig() { return this.customHealthCheckConfig; } @Override public final java.lang.Object getCustomRuntimeConfig() { return this.customRuntimeConfig; } @Override public final java.lang.Object getDescription() { return this.description; } @Override public final java.lang.Object getDiskSize() { return this.diskSize; } @Override public final java.lang.Object getEnvironmentVariables() { return this.environmentVariables; } @Override public final java.lang.Object getGpuMemorySize() { return this.gpuMemorySize; } @Override public final java.lang.Object getInitializationTimeout() { return this.initializationTimeout; } @Override public final java.lang.Object getInitializer() { return this.initializer; } @Override public final java.lang.Object getInstanceConcurrency() { return this.instanceConcurrency; } @Override public final java.lang.Object getInstanceLifecycleConfig() { return this.instanceLifecycleConfig; } @Override public final java.lang.Object getInstanceSoftConcurrency() { return this.instanceSoftConcurrency; } @Override public final java.lang.Object getInstanceType() { return this.instanceType; } @Override public final java.lang.Object getMemorySize() { return this.memorySize; } @Override public final java.lang.Object getTimeout() { return this.timeout; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); data.set("functionName", om.valueToTree(this.getFunctionName())); data.set("handler", om.valueToTree(this.getHandler())); data.set("runtime", om.valueToTree(this.getRuntime())); data.set("serviceName", om.valueToTree(this.getServiceName())); if (this.getAsyncConfiguration() != null) { data.set("asyncConfiguration", om.valueToTree(this.getAsyncConfiguration())); } if (this.getCaPort() != null) { data.set("caPort", om.valueToTree(this.getCaPort())); } if (this.getCode() != null) { data.set("code", om.valueToTree(this.getCode())); } if (this.getCpu() != null) { data.set("cpu", om.valueToTree(this.getCpu())); } if (this.getCustomContainerConfig() != null) { data.set("customContainerConfig", om.valueToTree(this.getCustomContainerConfig())); } if (this.getCustomDns() != null) { data.set("customDns", om.valueToTree(this.getCustomDns())); } if (this.getCustomHealthCheckConfig() != null) { data.set("customHealthCheckConfig", om.valueToTree(this.getCustomHealthCheckConfig())); } if (this.getCustomRuntimeConfig() != null) { data.set("customRuntimeConfig", om.valueToTree(this.getCustomRuntimeConfig())); } if (this.getDescription() != null) { data.set("description", om.valueToTree(this.getDescription())); } if (this.getDiskSize() != null) { data.set("diskSize", om.valueToTree(this.getDiskSize())); } if (this.getEnvironmentVariables() != null) { data.set("environmentVariables", om.valueToTree(this.getEnvironmentVariables())); } if (this.getGpuMemorySize() != null) { data.set("gpuMemorySize", om.valueToTree(this.getGpuMemorySize())); } if (this.getInitializationTimeout() != null) { data.set("initializationTimeout", om.valueToTree(this.getInitializationTimeout())); } if (this.getInitializer() != null) { data.set("initializer", om.valueToTree(this.getInitializer())); } if (this.getInstanceConcurrency() != null) { data.set("instanceConcurrency", om.valueToTree(this.getInstanceConcurrency())); } if (this.getInstanceLifecycleConfig() != null) { data.set("instanceLifecycleConfig", om.valueToTree(this.getInstanceLifecycleConfig())); } if (this.getInstanceSoftConcurrency() != null) { data.set("instanceSoftConcurrency", om.valueToTree(this.getInstanceSoftConcurrency())); } if (this.getInstanceType() != null) { data.set("instanceType", om.valueToTree(this.getInstanceType())); } if (this.getMemorySize() != null) { data.set("memorySize", om.valueToTree(this.getMemorySize())); } if (this.getTimeout() != null) { data.set("timeout", om.valueToTree(this.getTimeout())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-fc.FunctionProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; FunctionProps.Jsii$Proxy that = (FunctionProps.Jsii$Proxy) o; if (!functionName.equals(that.functionName)) return false; if (!handler.equals(that.handler)) return false; if (!runtime.equals(that.runtime)) return false; if (!serviceName.equals(that.serviceName)) return false; if (this.asyncConfiguration != null ? !this.asyncConfiguration.equals(that.asyncConfiguration) : that.asyncConfiguration != null) return false; if (this.caPort != null ? !this.caPort.equals(that.caPort) : that.caPort != null) return false; if (this.code != null ? !this.code.equals(that.code) : that.code != null) return false; if (this.cpu != null ? !this.cpu.equals(that.cpu) : that.cpu != null) return false; if (this.customContainerConfig != null ? !this.customContainerConfig.equals(that.customContainerConfig) : that.customContainerConfig != null) return false; if (this.customDns != null ? !this.customDns.equals(that.customDns) : that.customDns != null) return false; if (this.customHealthCheckConfig != null ? !this.customHealthCheckConfig.equals(that.customHealthCheckConfig) : that.customHealthCheckConfig != null) return false; if (this.customRuntimeConfig != null ? !this.customRuntimeConfig.equals(that.customRuntimeConfig) : that.customRuntimeConfig != null) return false; if (this.description != null ? !this.description.equals(that.description) : that.description != null) return false; if (this.diskSize != null ? !this.diskSize.equals(that.diskSize) : that.diskSize != null) return false; if (this.environmentVariables != null ? !this.environmentVariables.equals(that.environmentVariables) : that.environmentVariables != null) return false; if (this.gpuMemorySize != null ? !this.gpuMemorySize.equals(that.gpuMemorySize) : that.gpuMemorySize != null) return false; if (this.initializationTimeout != null ? !this.initializationTimeout.equals(that.initializationTimeout) : that.initializationTimeout != null) return false; if (this.initializer != null ? !this.initializer.equals(that.initializer) : that.initializer != null) return false; if (this.instanceConcurrency != null ? !this.instanceConcurrency.equals(that.instanceConcurrency) : that.instanceConcurrency != null) return false; if (this.instanceLifecycleConfig != null ? !this.instanceLifecycleConfig.equals(that.instanceLifecycleConfig) : that.instanceLifecycleConfig != null) return false; if (this.instanceSoftConcurrency != null ? !this.instanceSoftConcurrency.equals(that.instanceSoftConcurrency) : that.instanceSoftConcurrency != null) return false; if (this.instanceType != null ? !this.instanceType.equals(that.instanceType) : that.instanceType != null) return false; if (this.memorySize != null ? !this.memorySize.equals(that.memorySize) : that.memorySize != null) return false; return this.timeout != null ? this.timeout.equals(that.timeout) : that.timeout == null; } @Override public final int hashCode() { int result = this.functionName.hashCode(); result = 31 * result + (this.handler.hashCode()); result = 31 * result + (this.runtime.hashCode()); result = 31 * result + (this.serviceName.hashCode()); result = 31 * result + (this.asyncConfiguration != null ? this.asyncConfiguration.hashCode() : 0); result = 31 * result + (this.caPort != null ? this.caPort.hashCode() : 0); result = 31 * result + (this.code != null ? this.code.hashCode() : 0); result = 31 * result + (this.cpu != null ? this.cpu.hashCode() : 0); result = 31 * result + (this.customContainerConfig != null ? this.customContainerConfig.hashCode() : 0); result = 31 * result + (this.customDns != null ? this.customDns.hashCode() : 0); result = 31 * result + (this.customHealthCheckConfig != null ? this.customHealthCheckConfig.hashCode() : 0); result = 31 * result + (this.customRuntimeConfig != null ? this.customRuntimeConfig.hashCode() : 0); result = 31 * result + (this.description != null ? this.description.hashCode() : 0); result = 31 * result + (this.diskSize != null ? this.diskSize.hashCode() : 0); result = 31 * result + (this.environmentVariables != null ? this.environmentVariables.hashCode() : 0); result = 31 * result + (this.gpuMemorySize != null ? this.gpuMemorySize.hashCode() : 0); result = 31 * result + (this.initializationTimeout != null ? this.initializationTimeout.hashCode() : 0); result = 31 * result + (this.initializer != null ? this.initializer.hashCode() : 0); result = 31 * result + (this.instanceConcurrency != null ? this.instanceConcurrency.hashCode() : 0); result = 31 * result + (this.instanceLifecycleConfig != null ? this.instanceLifecycleConfig.hashCode() : 0); result = 31 * result + (this.instanceSoftConcurrency != null ? this.instanceSoftConcurrency.hashCode() : 0); result = 31 * result + (this.instanceType != null ? this.instanceType.hashCode() : 0); result = 31 * result + (this.memorySize != null ? this.memorySize.hashCode() : 0); result = 31 * result + (this.timeout != null ? this.timeout.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy