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