Class AwsAccountRoleCredential.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<AwsAccountRoleCredential>
co.yellowdog.platform.account.credentials.AwsAccountRoleCredential.Builder
- All Implemented Interfaces:
CredentialBuilder<AwsAccountRoleCredential>
- Enclosing class:
AwsAccountRoleCredential
public static class AwsAccountRoleCredential.Builder
extends ValidatedBuilder<AwsAccountRoleCredential>
implements CredentialBuilder<AwsAccountRoleCredential>
A builder that can be used to build a new AwsAccountRoleCredential that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.description
(String description) externalId
(String externalId) The external ID required to assume the external role.externalRoleArn
(String externalRoleArn) The ARN of the IAM role in the external account.toString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
name
- Specified by:
name
in interfaceCredentialBuilder<AwsAccountRoleCredential>
- Returns:
this
.
-
description
- Returns:
this
.
-
externalRoleArn
The ARN of the IAM role in the external account.- Parameters:
externalRoleArn
- the ARN of the IAM role in the external account- Returns:
this
.
-
externalId
The external ID required to assume the external role.- Parameters:
externalId
- the external ID- 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<AwsAccountRoleCredential>
- Overrides:
buildUnchecked
in classValidatedBuilder<AwsAccountRoleCredential>
- Returns:
- the object being built
-
toString
-