Class EksOptimizedImageProps.Builder
java.lang.Object
software.amazon.awscdk.services.eks.EksOptimizedImageProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EksOptimizedImageProps>
- Enclosing interface:
- EksOptimizedImageProps
@Stability(Stable)
public static final class EksOptimizedImageProps.Builder
extends Object
implements software.amazon.jsii.Builder<EksOptimizedImageProps>
A builder for
EksOptimizedImageProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofEksOptimizedImageProps.getCpuArch()kubernetesVersion(String kubernetesVersion) Sets the value ofEksOptimizedImageProps.getKubernetesVersion()Sets the value ofEksOptimizedImageProps.getNodeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cpuArch
Sets the value ofEksOptimizedImageProps.getCpuArch()- Parameters:
cpuArch- What cpu architecture to retrieve the image for (arm64 or x86_64).- Returns:
this
-
kubernetesVersion
@Stability(Stable) public EksOptimizedImageProps.Builder kubernetesVersion(String kubernetesVersion) Sets the value ofEksOptimizedImageProps.getKubernetesVersion()- Parameters:
kubernetesVersion- The Kubernetes version to use.- Returns:
this
-
nodeType
Sets the value ofEksOptimizedImageProps.getNodeType()- Parameters:
nodeType- What instance type to retrieve the image for (standard or GPU-optimized).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EksOptimizedImageProps>- Returns:
- a new instance of
EksOptimizedImageProps - Throws:
NullPointerException- if any required attribute was not provided
-