Class StorageCredentialPair


  • public class StorageCredentialPair
    extends java.lang.Object
    A class representing the pair of credentials needed to complete an analytics operation using the Storage transport. It is possible that both credentials (read and write) are the same, but also that they could represent the credentials needed for two different buckets when using cross-region synchronization to transfer data between regions.
    • Constructor Detail

      • StorageCredentialPair

        public StorageCredentialPair​(java.lang.String writeRegion,
                                     StorageCredentials writeCredentials,
                                     java.lang.String readRegion,
                                     StorageCredentials readCredentials)
        Create a new instance of a StorageCredentialPair
        Parameters:
        writeRegion - the name of the region where write/upload happens
        writeCredentials - the credentials used for writing to the storage endpoint
        readRegion - the name of the region where read/download happens
        readCredentials - the credentials used to read from the storage endpoint
    • Method Detail

      • toRestoreJobSecrets

        public o.a.c.sidecar.client.shaded.common.data.RestoreJobSecrets toRestoreJobSecrets()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object