Record Class BitBucketPPRServerNotificationConfig
java.lang.Object
java.lang.Record
io.jenkins.plugins.bitbucketpushandpullrequest.action.BitBucketPPRServerNotificationConfig
public record BitBucketPPRServerNotificationConfig(String baseUrl, String credentialsId)
extends Record
The notification endpoint and credential, resolved together as a pair from a single configuration
level: the trigger if it declares both, otherwise the global configuration if it declares both,
otherwise the notification is refused. Resolving them together, never one from the trigger and the
other from the global level, keeps the credential bound to the endpoint it is meant for.
-
Constructor Summary
ConstructorsConstructorDescriptionBitBucketPPRServerNotificationConfig(String baseUrl, String credentialsId) Creates an instance of aBitBucketPPRServerNotificationConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbaseUrl()Returns the value of thebaseUrlrecord component.Returns the value of thecredentialsIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.resolve(BitBucketPPRTrigger trigger, BitBucketPPRPluginConfig globalConfig) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BitBucketPPRServerNotificationConfig
-
-
Method Details
-
resolve
public static BitBucketPPRServerNotificationConfig resolve(BitBucketPPRTrigger trigger, BitBucketPPRPluginConfig globalConfig) -
toString
-
hashCode
-
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). -
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
credentialsId
Returns the value of thecredentialsIdrecord component.- Returns:
- the value of the
credentialsIdrecord component
-