Package org.cdk8s.plus25
Class BasicAuthSecretProps.Builder
- java.lang.Object
-
- org.cdk8s.plus25.BasicAuthSecretProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BasicAuthSecretProps>
- Enclosing interface:
- BasicAuthSecretProps
@Stability(Stable) public static final class BasicAuthSecretProps.Builder extends Object implements software.amazon.jsii.Builder<BasicAuthSecretProps>
A builder forBasicAuthSecretProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicAuthSecretPropsbuild()Builds the configured instance.BasicAuthSecretProps.Builderimmutable(Boolean immutable)Sets the value ofCommonSecretProps.getImmutable()BasicAuthSecretProps.Buildermetadata(org.cdk8s.ApiObjectMetadata metadata)Sets the value ofResourceProps.getMetadata()BasicAuthSecretProps.Builderpassword(String password)Sets the value ofBasicAuthSecretProps.getPassword()BasicAuthSecretProps.Builderusername(String username)Sets the value ofBasicAuthSecretProps.getUsername()
-
-
-
Method Detail
-
password
@Stability(Stable) public BasicAuthSecretProps.Builder password(String password)
Sets the value ofBasicAuthSecretProps.getPassword()- Parameters:
password- The password or token for authentication. This parameter is required.- Returns:
this
-
username
@Stability(Stable) public BasicAuthSecretProps.Builder username(String username)
Sets the value ofBasicAuthSecretProps.getUsername()- Parameters:
username- The user name for authentication. This parameter is required.- Returns:
this
-
immutable
@Stability(Stable) public BasicAuthSecretProps.Builder immutable(Boolean immutable)
Sets the value ofCommonSecretProps.getImmutable()- Parameters:
immutable- If set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time.- Returns:
this
-
metadata
@Stability(Stable) public BasicAuthSecretProps.Builder metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofResourceProps.getMetadata()- Parameters:
metadata- Metadata that all persisted resources must have, which includes all objects users must create.- Returns:
this
-
build
@Stability(Stable) public BasicAuthSecretProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BasicAuthSecretProps>- Returns:
- a new instance of
BasicAuthSecretProps - Throws:
NullPointerException- if any required attribute was not provided
-
-