Class AlibabaCredential.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<AlibabaCredential>
co.yellowdog.platform.account.credentials.AlibabaCredential.Builder
- All Implemented Interfaces:
CredentialBuilder<AlibabaCredential>
- Enclosing class:
AlibabaCredential
public static class AlibabaCredential.Builder
extends ValidatedBuilder<AlibabaCredential>
implements CredentialBuilder<AlibabaCredential>
A builder that can be used to build a new AlibabaCredential that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionaccessKeyId
(String accessKeyId) The Alibaba Cloud Access Key IDBuilds the object without enforcing validation constraints.description
(String description) secretAccessKey
(String secretAccessKey) The Alibaba Cloud Secret Access KeytoString()
Methods inherited from class co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
name
- Specified by:
name
in interfaceCredentialBuilder<AlibabaCredential>
- Returns:
this
.
-
description
- Returns:
this
.
-
accessKeyId
The Alibaba Cloud Access Key ID- Parameters:
accessKeyId
- the Alibaba Cloud Access Key ID- Returns:
this
.
-
secretAccessKey
The Alibaba Cloud Secret Access Key- Parameters:
secretAccessKey
- the Alibaba Cloud Secret Access Key- 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<AlibabaCredential>
- Overrides:
buildUnchecked
in classValidatedBuilder<AlibabaCredential>
- Returns:
- the object being built
-
toString
-