Record Class GitCredentialsBag
java.lang.Object
java.lang.Record
com.atlassian.bamboo.repository.git.GitCredentialsBag
public record GitCredentialsBag(String sshPassphrase, String sshKey, String username, String password, GitAuthenticationType gitAuthenticationType, Long sharedCredentialsId)
extends Record
Data object for Git related credentials.
- Since:
- 10.1
-
Constructor Summary
ConstructorDescriptionGitCredentialsBag
(String sshPassphrase, String sshKey, String username, String password, GitAuthenticationType gitAuthenticationType, Long sharedCredentialsId) Creates an instance of aGitCredentialsBag
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegitAuthenticationType
record component.final int
hashCode()
Returns a hash code value for this object.password()
Returns the value of thepassword
record component.Returns the value of thesharedCredentialsId
record component.sshKey()
Returns the value of thesshKey
record component.Returns the value of thesshPassphrase
record component.final String
toString()
Returns a string representation of this record class.username()
Returns the value of theusername
record component.
-
Constructor Details
-
GitCredentialsBag
public GitCredentialsBag(String sshPassphrase, String sshKey, String username, String password, GitAuthenticationType gitAuthenticationType, Long sharedCredentialsId) Creates an instance of aGitCredentialsBag
record class.- Parameters:
sshPassphrase
- the value for thesshPassphrase
record componentsshKey
- the value for thesshKey
record componentusername
- the value for theusername
record componentpassword
- the value for thepassword
record componentgitAuthenticationType
- the value for thegitAuthenticationType
record componentsharedCredentialsId
- the value for thesharedCredentialsId
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
sshPassphrase
Returns the value of thesshPassphrase
record component.- Returns:
- the value of the
sshPassphrase
record component
-
sshKey
Returns the value of thesshKey
record component.- Returns:
- the value of the
sshKey
record component
-
username
Returns the value of theusername
record component.- Returns:
- the value of the
username
record component
-
password
Returns the value of thepassword
record component.- Returns:
- the value of the
password
record component
-
gitAuthenticationType
Returns the value of thegitAuthenticationType
record component.- Returns:
- the value of the
gitAuthenticationType
record component
-