Package org.cdk8s.plus24
Class BasicAuthSecret.Builder
- java.lang.Object
-
- org.cdk8s.plus24.BasicAuthSecret.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BasicAuthSecret>
- Enclosing class:
- BasicAuthSecret
@Stability(Stable) public static final class BasicAuthSecret.Builder extends Object implements software.amazon.jsii.Builder<BasicAuthSecret>
A fluent builder forBasicAuthSecret
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicAuthSecret
build()
static BasicAuthSecret.Builder
create(software.constructs.Construct scope, String id)
BasicAuthSecret.Builder
immutable(Boolean immutable)
If set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified).BasicAuthSecret.Builder
metadata(org.cdk8s.ApiObjectMetadata metadata)
Metadata that all persisted resources must have, which includes all objects users must create.BasicAuthSecret.Builder
password(String password)
The password or token for authentication.BasicAuthSecret.Builder
username(String username)
The user name for authentication.
-
-
-
Method Detail
-
create
@Stability(Stable) public static BasicAuthSecret.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
BasicAuthSecret.Builder
.
-
metadata
@Stability(Stable) public BasicAuthSecret.Builder metadata(org.cdk8s.ApiObjectMetadata metadata)
Metadata that all persisted resources must have, which includes all objects users must create.- Parameters:
metadata
- Metadata that all persisted resources must have, which includes all objects users must create. This parameter is required.- Returns:
this
-
immutable
@Stability(Stable) public BasicAuthSecret.Builder immutable(Boolean 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.
Default: false
- Parameters:
immutable
- If set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). This parameter is required.- Returns:
this
-
password
@Stability(Stable) public BasicAuthSecret.Builder password(String password)
The password or token for authentication.- Parameters:
password
- The password or token for authentication. This parameter is required.- Returns:
this
-
username
@Stability(Stable) public BasicAuthSecret.Builder username(String username)
The user name for authentication.- Parameters:
username
- The user name for authentication. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public BasicAuthSecret build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BasicAuthSecret>
- Returns:
- a newly built instance of
BasicAuthSecret
.
-
-