Record Class OrasTagParameterDefinition.TagsResponse
java.lang.Object
java.lang.Record
io.jenkins.plugins.oras.parameter.OrasTagParameterDefinition.TagsResponse
- Record Components:
effectiveReference- The reference- List of tags
- Enclosing class:
OrasTagParameterDefinition
public static record OrasTagParameterDefinition.TagsResponse(String effectiveReference, List<String> tags)
extends Record
Hold response with tags from the registry
-
Constructor Summary
ConstructorsConstructorDescriptionTagsResponse(String effectiveReference, List<String> tags) Creates an instance of aTagsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theeffectiveReferencerecord component.empty(RegistryClient client, land.oras.ContainerRef containerRef) final booleanIndicates whether some other object is "equal to" this one.getTags()final inthashCode()Returns a hash code value for this object.of(RegistryClient client, land.oras.ContainerRef containerRef, Integer maxTags) tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TagsResponse
Creates an instance of aTagsResponserecord class.- Parameters:
effectiveReference- the value for theeffectiveReferencerecord componenttags- the value for thetagsrecord component
-
-
Method Details
-
of
public static OrasTagParameterDefinition.TagsResponse of(RegistryClient client, land.oras.ContainerRef containerRef, Integer maxTags) -
empty
public static OrasTagParameterDefinition.TagsResponse empty(RegistryClient client, land.oras.ContainerRef containerRef) -
getEffectiveReference
-
getTags
-
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). -
effectiveReference
Returns the value of theeffectiveReferencerecord component.- Returns:
- the value of the
effectiveReferencerecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-