Class ServiceAccountOptions.Builder
java.lang.Object
software.amazon.awscdk.services.eks.ServiceAccountOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceAccountOptions>
- Enclosing interface:
ServiceAccountOptions
@Stability(Stable)
public static final class ServiceAccountOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ServiceAccountOptions>
A builder for
ServiceAccountOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionannotations
(Map<String, String> annotations) Sets the value ofServiceAccountOptions.getAnnotations()
build()
Builds the configured instance.identityType
(IdentityType identityType) Sets the value ofServiceAccountOptions.getIdentityType()
Sets the value ofServiceAccountOptions.getLabels()
Sets the value ofServiceAccountOptions.getName()
Sets the value ofServiceAccountOptions.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
annotations
Sets the value ofServiceAccountOptions.getAnnotations()
- Parameters:
annotations
- Additional annotations of the service account.- Returns:
this
-
identityType
Sets the value ofServiceAccountOptions.getIdentityType()
- Parameters:
identityType
- The identity type to use for 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<ServiceAccountOptions>
- Returns:
- a new instance of
ServiceAccountOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-