Class ServiceAccountProps.Builder
java.lang.Object
software.amazon.awscdk.services.eks.ServiceAccountProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceAccountProps>
- Enclosing interface:
- ServiceAccountProps
@Stability(Stable)
public static final class ServiceAccountProps.Builder
extends Object
implements software.amazon.jsii.Builder<ServiceAccountProps>
A builder for
ServiceAccountProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotations
(Map<String, String> annotations) Sets the value ofServiceAccountOptions.getAnnotations()
build()
Builds the configured instance.Sets the value ofServiceAccountProps.getCluster()
Sets the value ofServiceAccountOptions.getLabels()
Sets the value ofServiceAccountOptions.getName()
Sets the value ofServiceAccountOptions.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cluster
Sets the value ofServiceAccountProps.getCluster()
- Parameters:
cluster
- The cluster to apply the patch to. This parameter is required.- Returns:
this
-
annotations
Sets the value ofServiceAccountOptions.getAnnotations()
- Parameters:
annotations
- Additional annotations of the service account.- Returns:
this
-
labels
Sets the value ofServiceAccountOptions.getLabels()
- Parameters:
labels
- Additional labels of the service account.- Returns:
this
-
name
Sets the value ofServiceAccountOptions.getName()
- Parameters:
name
- The name of the service account. The name of a ServiceAccount object must be a valid DNS subdomain name. https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/- Returns:
this
-
namespace
Sets the value ofServiceAccountOptions.getNamespace()
- Parameters:
namespace
- The namespace of the service account. All namespace names must be valid RFC 1123 DNS labels. https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/#namespaces-and-dns- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ServiceAccountProps>
- Returns:
- a new instance of
ServiceAccountProps
- Throws:
NullPointerException
- if any required attribute was not provided
-