Class AwsCredentialsSecrets.Builder
- java.lang.Object
-
- io.github.cdklabs.cdkpipelines.github.AwsCredentialsSecrets.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AwsCredentialsSecrets>
- Enclosing interface:
- AwsCredentialsSecrets
@Stability(Stable) public static final class AwsCredentialsSecrets.Builder extends Object implements software.amazon.jsii.Builder<AwsCredentialsSecrets>
A builder forAwsCredentialsSecrets
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsCredentialsSecrets.BuilderaccessKeyId(String accessKeyId)Sets the value ofAwsCredentialsSecrets.getAccessKeyId()AwsCredentialsSecretsbuild()Builds the configured instance.AwsCredentialsSecrets.BuildersecretAccessKey(String secretAccessKey)Sets the value ofAwsCredentialsSecrets.getSecretAccessKey()AwsCredentialsSecrets.BuildersessionToken(String sessionToken)Sets the value ofAwsCredentialsSecrets.getSessionToken()
-
-
-
Method Detail
-
accessKeyId
@Stability(Stable) public AwsCredentialsSecrets.Builder accessKeyId(String accessKeyId)
Sets the value ofAwsCredentialsSecrets.getAccessKeyId()- Parameters:
accessKeyId- the value to be set.- Returns:
this
-
secretAccessKey
@Stability(Stable) public AwsCredentialsSecrets.Builder secretAccessKey(String secretAccessKey)
Sets the value ofAwsCredentialsSecrets.getSecretAccessKey()- Parameters:
secretAccessKey- the value to be set.- Returns:
this
-
sessionToken
@Stability(Stable) public AwsCredentialsSecrets.Builder sessionToken(String sessionToken)
Sets the value ofAwsCredentialsSecrets.getSessionToken()- Parameters:
sessionToken- the value to be set.- Returns:
this
-
build
@Stability(Stable) public AwsCredentialsSecrets build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AwsCredentialsSecrets>- Returns:
- a new instance of
AwsCredentialsSecrets - Throws:
NullPointerException- if any required attribute was not provided
-
-