Record Class RegistryClient.RegistryConfig
java.lang.Object
java.lang.Record
io.jenkins.plugins.jobcacher.oras.RegistryClient.RegistryConfig
- All Implemented Interfaces:
Serializable
- Enclosing class:
- RegistryClient
public static record RegistryClient.RegistryConfig(String registryUrl, String namespace, com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials credentials)
extends Record
implements Serializable
Configuration of the registry.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRegistryConfig
(String registryUrl, String namespace, com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials credentials) Creates an instance of aRegistryConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.cloudbees.plugins.credentials.common.UsernamePasswordCredentials
Returns the value of thecredentials
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenamespace
record component.Returns the value of theregistryUrl
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RegistryConfig
public RegistryConfig(String registryUrl, String namespace, com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials credentials) Creates an instance of aRegistryConfig
record class.- Parameters:
registryUrl
- the value for theregistryUrl
record componentnamespace
- the value for thenamespace
record componentcredentials
- the value for thecredentials
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)
. -
registryUrl
Returns the value of theregistryUrl
record component.- Returns:
- the value of the
registryUrl
record component
-
namespace
Returns the value of thenamespace
record component.- Returns:
- the value of the
namespace
record component
-
credentials
public com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials credentials()Returns the value of thecredentials
record component.- Returns:
- the value of the
credentials
record component
-