Record Class TenantManagedArchiveBucket

java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.api.integration.archive.TenantManagedArchiveBucket

public record TenantManagedArchiveBucket(String bucketName, com.yahoo.config.provision.CloudAccount cloudAccount, Instant updatedAt) extends Record
Represents a cloud storage bucket (e.g. AWS S3 or Google Storage) used to store archive data - logs, heap/core dumps, etc. that is managed by the tenant directly.
Author:
freva
  • Constructor Summary

    Constructors
    Constructor
    Description
    TenantManagedArchiveBucket(String bucketName, com.yahoo.config.provision.CloudAccount cloudAccount, Instant updatedAt)
    Creates an instance of a TenantManagedArchiveBucket record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the bucketName record component.
    com.yahoo.config.provision.CloudAccount
    Returns the value of the cloudAccount record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.
    Returns the value of the updatedAt record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TenantManagedArchiveBucket

      public TenantManagedArchiveBucket(String bucketName, com.yahoo.config.provision.CloudAccount cloudAccount, Instant updatedAt)
      Creates an instance of a TenantManagedArchiveBucket record class.
      Parameters:
      bucketName - the value for the bucketName record component
      cloudAccount - the value for the cloudAccount record component
      updatedAt - the value for the updatedAt record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • bucketName

      public String bucketName()
      Returns the value of the bucketName record component.
      Returns:
      the value of the bucketName record component
    • cloudAccount

      public com.yahoo.config.provision.CloudAccount cloudAccount()
      Returns the value of the cloudAccount record component.
      Returns:
      the value of the cloudAccount record component
    • updatedAt

      public Instant updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component