Record Class DatabaseReplica

java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.model.DatabaseReplica
Record Components:
etag - the entity's ETag (@odata.etag), for If-Match
id - The unique identifier of the database replica.
fingerprint - The unique fingerprint of the replica. (since 12.2.0)
state - String value that denotes the state that the database replica is in.
commit - The tag that represents the last applied commit.
role - The current role of the replica, e.g.: Follower, Leader, etc. (since 12.2.0)
productVersion - The product version of this replica. (when expanded)

@Generated("io.skipcheck.tm1.codegen") @Since("12.0.0") public record DatabaseReplica(@Nullable String etag, @Nullable String id, @Since("12.2.0") @Nullable String fingerprint, @Nullable String state, @Nullable String commit, @Since("12.2.0") @Nullable ReplicaRole role, @Nullable ProductVersion productVersion) extends Record
Represents a database replica.

Generated from $metadata. Every component is nullable: $select can leave any property out, and navigation properties are only there when expanded. Null components aren't sent.

  • Field Details

    • ID

      public static final ODataProperty ID
      ID, for queries: The unique identifier of the database replica.
    • FINGERPRINT

      @Since("12.2.0") public static final ODataProperty FINGERPRINT
      Fingerprint, for queries: The unique fingerprint of the replica.
    • STATE

      public static final ODataProperty STATE
      State, for queries: String value that denotes the state that the database replica is in.
    • COMMIT

      public static final ODataProperty COMMIT
      Commit, for queries: The tag that represents the last applied commit.
    • ROLE

      @Since("12.2.0") public static final ODataProperty ROLE
      Role, for queries: The current role of the replica, e.g.: Follower, Leader, etc.
    • PRODUCT_VERSION

      public static final ODataProperty PRODUCT_VERSION
      ProductVersion, for queries: The product version of this replica. (a navigation property, for $expand)
  • Constructor Details

    • DatabaseReplica

      public DatabaseReplica(@Nullable String etag, @Nullable String id, @Nullable String fingerprint, @Nullable String state, @Nullable String commit, @Nullable ReplicaRole role, @Nullable ProductVersion productVersion)
      Creates an instance of a DatabaseReplica record class.
      Parameters:
      etag - the value for the etag record component
      id - the value for the id record component
      fingerprint - the value for the fingerprint record component
      state - the value for the state record component
      commit - the value for the commit record component
      role - the value for the role record component
      productVersion - the value for the productVersion 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.
    • etag

      public @Nullable String etag()
      Returns the value of the etag record component.
      Returns:
      the value of the etag record component
    • id

      public @Nullable String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • fingerprint

      @Since("12.2.0") public @Nullable String fingerprint()
      Returns the value of the fingerprint record component.
      Returns:
      the value of the fingerprint record component
    • state

      public @Nullable String state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • commit

      public @Nullable String commit()
      Returns the value of the commit record component.
      Returns:
      the value of the commit record component
    • role

      @Since("12.2.0") public @Nullable ReplicaRole role()
      Returns the value of the role record component.
      Returns:
      the value of the role record component
    • productVersion

      public @Nullable ProductVersion productVersion()
      Returns the value of the productVersion record component.
      Returns:
      the value of the productVersion record component