Record Class ArchiveBuckets
java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.api.integration.archive.ArchiveBuckets
public record ArchiveBuckets(Set<VespaManagedArchiveBucket> vespaManaged, Set<TenantManagedArchiveBucket> tenantManaged)
extends Record
- Author:
- freva
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArchiveBuckets(Set<VespaManagedArchiveBucket> vespaManaged, Set<TenantManagedArchiveBucket> tenantManaged) Creates an instance of aArchiveBucketsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetenantManagedrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevespaManagedrecord component.with(TenantManagedArchiveBucket tenantManagedArchiveBucket) Adds or replaces a TenantManagedArchive bucket with the given archive bucketwith(VespaManagedArchiveBucket vespaManagedArchiveBucket) Adds or replaces a VespaManagedArchive bucket with the given archive bucket
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ArchiveBuckets
public ArchiveBuckets(Set<VespaManagedArchiveBucket> vespaManaged, Set<TenantManagedArchiveBucket> tenantManaged) Creates an instance of aArchiveBucketsrecord class.- Parameters:
vespaManaged- the value for thevespaManagedrecord componenttenantManaged- the value for thetenantManagedrecord component
-
-
Method Details
-
with
Adds or replaces a VespaManagedArchive bucket with the given archive bucket -
with
Adds or replaces a TenantManagedArchive bucket with the given archive bucket -
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). -
vespaManaged
Returns the value of thevespaManagedrecord component.- Returns:
- the value of the
vespaManagedrecord component
-
tenantManaged
Returns the value of thetenantManagedrecord component.- Returns:
- the value of the
tenantManagedrecord component
-