Class CfnMicrovmImageProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnMicrovmImageProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMicrovmImageProps>
- Enclosing interface:
CfnMicrovmImageProps
@Stability(Stable)
public static final class CfnMicrovmImageProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMicrovmImageProps>
A builder for
CfnMicrovmImageProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalOsCapabilities(List<String> additionalOsCapabilities) Sets the value ofCfnMicrovmImageProps.getAdditionalOsCapabilities()baseImageArn(String baseImageArn) Sets the value ofCfnMicrovmImageProps.getBaseImageArn()baseImageVersion(String baseImageVersion) Sets the value ofCfnMicrovmImageProps.getBaseImageVersion()build()Builds the configured instance.buildRoleArn(String buildRoleArn) Sets the value ofCfnMicrovmImageProps.getBuildRoleArn()codeArtifact(IResolvable codeArtifact) Sets the value ofCfnMicrovmImageProps.getCodeArtifact()codeArtifact(CfnMicrovmImage.CodeArtifactProperty codeArtifact) Sets the value ofCfnMicrovmImageProps.getCodeArtifact()cpuConfigurations(List<? extends Object> cpuConfigurations) Sets the value ofCfnMicrovmImageProps.getCpuConfigurations()cpuConfigurations(IResolvable cpuConfigurations) Sets the value ofCfnMicrovmImageProps.getCpuConfigurations()description(String description) Sets the value ofCfnMicrovmImageProps.getDescription()egressNetworkConnectors(List<String> egressNetworkConnectors) Sets the value ofCfnMicrovmImageProps.getEgressNetworkConnectors()environmentVariables(List<? extends Object> environmentVariables) Sets the value ofCfnMicrovmImageProps.getEnvironmentVariables()environmentVariables(IResolvable environmentVariables) Sets the value ofCfnMicrovmImageProps.getEnvironmentVariables()hooks(IResolvable hooks) Sets the value ofCfnMicrovmImageProps.getHooks()Sets the value ofCfnMicrovmImageProps.getHooks()logging(IResolvable logging) Sets the value ofCfnMicrovmImageProps.getLogging()logging(CfnMicrovmImage.LoggingProperty logging) Sets the value ofCfnMicrovmImageProps.getLogging()Sets the value ofCfnMicrovmImageProps.getName()Sets the value ofCfnMicrovmImageProps.getResources()resources(IResolvable resources) Sets the value ofCfnMicrovmImageProps.getResources()Sets the value ofCfnMicrovmImageProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalOsCapabilities
@Stability(Stable) public CfnMicrovmImageProps.Builder additionalOsCapabilities(List<String> additionalOsCapabilities) Sets the value ofCfnMicrovmImageProps.getAdditionalOsCapabilities()- Parameters:
additionalOsCapabilities- the value to be set. This parameter is required.- Returns:
this
-
baseImageArn
Sets the value ofCfnMicrovmImageProps.getBaseImageArn()- Parameters:
baseImageArn- ARN of the base MicroVM image. This parameter is required.- Returns:
this
-
baseImageVersion
Sets the value ofCfnMicrovmImageProps.getBaseImageVersion()- Parameters:
baseImageVersion- Specific version of the base MicroVM image to use. This parameter is required.- Returns:
this
-
buildRoleArn
Sets the value ofCfnMicrovmImageProps.getBuildRoleArn()- Parameters:
buildRoleArn- ARN of the IAM build role. This parameter is required.- Returns:
this
-
codeArtifact
Sets the value ofCfnMicrovmImageProps.getCodeArtifact()- Parameters:
codeArtifact- the value to be set. This parameter is required.- Returns:
this
-
codeArtifact
@Stability(Stable) public CfnMicrovmImageProps.Builder codeArtifact(CfnMicrovmImage.CodeArtifactProperty codeArtifact) Sets the value ofCfnMicrovmImageProps.getCodeArtifact()- Parameters:
codeArtifact- the value to be set. This parameter is required.- Returns:
this
-
cpuConfigurations
@Stability(Stable) public CfnMicrovmImageProps.Builder cpuConfigurations(IResolvable cpuConfigurations) Sets the value ofCfnMicrovmImageProps.getCpuConfigurations()- Parameters:
cpuConfigurations- the value to be set. This parameter is required.- Returns:
this
-
cpuConfigurations
@Stability(Stable) public CfnMicrovmImageProps.Builder cpuConfigurations(List<? extends Object> cpuConfigurations) Sets the value ofCfnMicrovmImageProps.getCpuConfigurations()- Parameters:
cpuConfigurations- the value to be set. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnMicrovmImageProps.getDescription()- Parameters:
description- Human-readable description of the MicroVM image and its purpose. This parameter is required.- Returns:
this
-
egressNetworkConnectors
@Stability(Stable) public CfnMicrovmImageProps.Builder egressNetworkConnectors(List<String> egressNetworkConnectors) Sets the value ofCfnMicrovmImageProps.getEgressNetworkConnectors()- Parameters:
egressNetworkConnectors- the value to be set. This parameter is required.- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnMicrovmImageProps.Builder environmentVariables(IResolvable environmentVariables) Sets the value ofCfnMicrovmImageProps.getEnvironmentVariables()- Parameters:
environmentVariables- Environment variables to set in the container during the snapshot build. This parameter is required.- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnMicrovmImageProps.Builder environmentVariables(List<? extends Object> environmentVariables) Sets the value ofCfnMicrovmImageProps.getEnvironmentVariables()- Parameters:
environmentVariables- Environment variables to set in the container during the snapshot build. This parameter is required.- Returns:
this
-
hooks
Sets the value ofCfnMicrovmImageProps.getHooks()- Parameters:
hooks- the value to be set. This parameter is required.- Returns:
this
-
hooks
Sets the value ofCfnMicrovmImageProps.getHooks()- Parameters:
hooks- the value to be set. This parameter is required.- Returns:
this
-
logging
Sets the value ofCfnMicrovmImageProps.getLogging()- Parameters:
logging- the value to be set. This parameter is required.- Returns:
this
-
logging
@Stability(Stable) public CfnMicrovmImageProps.Builder logging(CfnMicrovmImage.LoggingProperty logging) Sets the value ofCfnMicrovmImageProps.getLogging()- Parameters:
logging- the value to be set. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnMicrovmImageProps.getName()- Parameters:
name- Unique name for the MicroVM image within the account. This parameter is required.- Returns:
this
-
resources
Sets the value ofCfnMicrovmImageProps.getResources()- Parameters:
resources- the value to be set. This parameter is required.- Returns:
this
-
resources
Sets the value ofCfnMicrovmImageProps.getResources()- Parameters:
resources- the value to be set. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnMicrovmImageProps.getTags()- Parameters:
tags- Key-value pairs to associate with the MicroVM image for organization and management.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMicrovmImageProps>- Returns:
- a new instance of
CfnMicrovmImageProps - Throws:
NullPointerException- if any required attribute was not provided
-