Class SharedCredentialsIdentifier
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<SharedCredentialsIdentifierProperties>
com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentialsIdentifier
public class SharedCredentialsIdentifier
extends EntityPropertiesBuilder<SharedCredentialsIdentifierProperties>
References a shared credential.
-
Constructor Summary
ConstructorDescriptionSharedCredentialsIdentifier
(@NotNull BambooOid oid) Reference shared credential by oid.SharedCredentialsIdentifier
(@NotNull String name) Reference shared credential by name. -
Method Summary
Modifier and TypeMethodDescriptionprotected SharedCredentialsIdentifierProperties
build()
Reference shared credential by name.Reference shared credential by oid.Reference shared credential by oid.scope
(@NotNull SharedCredentialsScope scope) Set scope for shared credentials.
-
Constructor Details
-
SharedCredentialsIdentifier
public SharedCredentialsIdentifier(@NotNull @NotNull String name) throws PropertiesValidationException Reference shared credential by name. Name of the credential is ignored if oid is defined.- Throws:
PropertiesValidationException
-
SharedCredentialsIdentifier
public SharedCredentialsIdentifier(@NotNull @NotNull BambooOid oid) throws PropertiesValidationException Reference shared credential by oid.- Throws:
PropertiesValidationException
-
-
Method Details
-
name
public SharedCredentialsIdentifier name(@NotNull @NotNull String name) throws PropertiesValidationException Reference shared credential by name. Name of the credential is ignored if oid is defined.- Throws:
PropertiesValidationException
-
oid
public SharedCredentialsIdentifier oid(@NotNull @NotNull String oid) throws PropertiesValidationException Reference shared credential by oid.- Throws:
PropertiesValidationException
-
oid
public SharedCredentialsIdentifier oid(@NotNull @NotNull BambooOid oid) throws PropertiesValidationException Reference shared credential by oid. Scope of shared credentials must matches, i.e. if shared credentials belongs to project then the scopeSharedCredentialsScope.PROJECT
must be set.- Throws:
PropertiesValidationException
-
build
- Specified by:
build
in classEntityPropertiesBuilder<SharedCredentialsIdentifierProperties>
- Throws:
PropertiesValidationException
-