Record Class AzureMlDownloadStatus

java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.AzureMlDownloadStatus

@CopilotExperimental @Generated("copilot-sdk-codegen") public record AzureMlDownloadStatus(String phase, Long completedBytes, Long totalBytes, Long retryAttempt, Long maxAttempts, String retryReason, Long retryDelayMs) extends Record
Progress and retry facts for one active download.
Since:
1.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    AzureMlDownloadStatus(String phase, Long completedBytes, Long totalBytes, Long retryAttempt, Long maxAttempts, String retryReason, Long retryDelayMs)
    Creates an instance of a AzureMlDownloadStatus record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the completedBytes record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the maxAttempts record component.
    Returns the value of the phase record component.
    Returns the value of the retryAttempt record component.
    Returns the value of the retryDelayMs record component.
    Returns the value of the retryReason record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the totalBytes record component.

    Methods inherited from class Object

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

    • AzureMlDownloadStatus

      public AzureMlDownloadStatus(String phase, Long completedBytes, Long totalBytes, Long retryAttempt, Long maxAttempts, String retryReason, Long retryDelayMs)
      Creates an instance of a AzureMlDownloadStatus record class.
      Parameters:
      phase - the value for the phase record component
      completedBytes - the value for the completedBytes record component
      totalBytes - the value for the totalBytes record component
      retryAttempt - the value for the retryAttempt record component
      maxAttempts - the value for the maxAttempts record component
      retryReason - the value for the retryReason record component
      retryDelayMs - the value for the retryDelayMs 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.
    • phase

      public String phase()
      Returns the value of the phase record component.
      Returns:
      the value of the phase record component
    • completedBytes

      public Long completedBytes()
      Returns the value of the completedBytes record component.
      Returns:
      the value of the completedBytes record component
    • totalBytes

      public Long totalBytes()
      Returns the value of the totalBytes record component.
      Returns:
      the value of the totalBytes record component
    • retryAttempt

      public Long retryAttempt()
      Returns the value of the retryAttempt record component.
      Returns:
      the value of the retryAttempt record component
    • maxAttempts

      public Long maxAttempts()
      Returns the value of the maxAttempts record component.
      Returns:
      the value of the maxAttempts record component
    • retryReason

      public String retryReason()
      Returns the value of the retryReason record component.
      Returns:
      the value of the retryReason record component
    • retryDelayMs

      public Long retryDelayMs()
      Returns the value of the retryDelayMs record component.
      Returns:
      the value of the retryDelayMs record component