Class AwsCredential.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<AwsCredential>
co.yellowdog.platform.account.credentials.AwsCredential.Builder
- All Implemented Interfaces:
CredentialBuilder<AwsCredential>
- Enclosing class:
AwsCredential
public static class AwsCredential.Builder
extends ValidatedBuilder<AwsCredential>
implements CredentialBuilder<AwsCredential>
A builder that can be used to build a new AwsCredential that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionaccessKeyId
(String accessKeyId) The AWS Access Key IDBuilds the object without enforcing validation constraints.description
(String description) expiryTime
(Instant expiryTime) The expiry time if this credential is temporarysecretAccessKey
(String secretAccessKey) The AWS Secret Access KeysessionToken
(String sessionToken) The AWS Session Token if this credential is temporarytoString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
name
- Specified by:
name
in interfaceCredentialBuilder<AwsCredential>
- Returns:
this
.
-
description
- Returns:
this
.
-
accessKeyId
The AWS Access Key ID- Parameters:
accessKeyId
- the AWS Access Key ID- Returns:
this
.
-
secretAccessKey
The AWS Secret Access Key- Parameters:
secretAccessKey
- the AWS Secret Access Key- Returns:
this
.
-
sessionToken
The AWS Session Token if this credential is temporary- Parameters:
sessionToken
- the AWS Session Token- Returns:
this
.
-
expiryTime
The expiry time if this credential is temporary- Parameters:
expiryTime
- the expiry time- Returns:
this
.
-
buildUnchecked
Description copied from class:ValidatedBuilder
Builds the object without enforcing validation constraints. This should only be used for testing purposes- Specified by:
buildUnchecked
in interfaceCredentialBuilder<AwsCredential>
- Overrides:
buildUnchecked
in classValidatedBuilder<AwsCredential>
- Returns:
- the object being built
-
toString
-