Class CfnHarnessPropsMixin.HarnessSkillGitAuthProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrockagentcore.CfnHarnessPropsMixin.HarnessSkillGitAuthProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHarnessPropsMixin.HarnessSkillGitAuthProperty>
- Enclosing interface:
CfnHarnessPropsMixin.HarnessSkillGitAuthProperty
@Stability(Stable)
public static final class CfnHarnessPropsMixin.HarnessSkillGitAuthProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHarnessPropsMixin.HarnessSkillGitAuthProperty>
A builder for
CfnHarnessPropsMixin.HarnessSkillGitAuthProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.credentialArn(String credentialArn) Sets the value ofCfnHarnessPropsMixin.HarnessSkillGitAuthProperty.getCredentialArn()Sets the value ofCfnHarnessPropsMixin.HarnessSkillGitAuthProperty.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
credentialArn
@Stability(Stable) public CfnHarnessPropsMixin.HarnessSkillGitAuthProperty.Builder credentialArn(String credentialArn) Sets the value ofCfnHarnessPropsMixin.HarnessSkillGitAuthProperty.getCredentialArn()- Parameters:
credentialArn- The ARN of the credential in AgentCore Identity containing the password or personal access token.- Returns:
this
-
username
@Stability(Stable) public CfnHarnessPropsMixin.HarnessSkillGitAuthProperty.Builder username(String username) Sets the value ofCfnHarnessPropsMixin.HarnessSkillGitAuthProperty.getUsername()- Parameters:
username- Username for authentication. Defaults to 'oauth2' if not specified.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHarnessPropsMixin.HarnessSkillGitAuthProperty>- Returns:
- a new instance of
CfnHarnessPropsMixin.HarnessSkillGitAuthProperty - Throws:
NullPointerException- if any required attribute was not provided
-