Record Class DatabaseReplica
java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.model.DatabaseReplica
- Record Components:
etag- the entity's ETag (@odata.etag), forIf-Matchid- 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final ODataPropertyCommit, for queries: The tag that represents the last applied commit.static final ODataPropertyFingerprint, for queries: The unique fingerprint of the replica.static final ODataPropertyID, for queries: The unique identifier of the database replica.static final ODataPropertyProductVersion, for queries: The product version of this replica.static final ODataPropertyRole, for queries: The current role of the replica, e.g.: Follower, Leader, etc.static final ODataPropertyState, for queries: String value that denotes the state that the database replica is in. -
Constructor Summary
ConstructorsConstructorDescriptionDatabaseReplica(@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 aDatabaseReplicarecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcommit()Returns the value of thecommitrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Stringetag()Returns the value of theetagrecord component.@Nullable StringReturns the value of thefingerprintrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringid()Returns the value of theidrecord component.@Nullable ProductVersionReturns the value of theproductVersionrecord component.@Nullable ReplicaRolerole()Returns the value of therolerecord component.@Nullable Stringstate()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ID
ID, for queries: The unique identifier of the database replica. -
FINGERPRINT
Fingerprint, for queries: The unique fingerprint of the replica. -
STATE
State, for queries: String value that denotes the state that the database replica is in. -
COMMIT
Commit, for queries: The tag that represents the last applied commit. -
ROLE
Role, for queries: The current role of the replica, e.g.: Follower, Leader, etc. -
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 aDatabaseReplicarecord class.- Parameters:
etag- the value for theetagrecord componentid- the value for theidrecord componentfingerprint- the value for thefingerprintrecord componentstate- the value for thestaterecord componentcommit- the value for thecommitrecord componentrole- the value for therolerecord componentproductVersion- the value for theproductVersionrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
etag
-
id
-
fingerprint
Returns the value of thefingerprintrecord component.- Returns:
- the value of the
fingerprintrecord component
-
state
-
commit
-
role
-
productVersion
Returns the value of theproductVersionrecord component.- Returns:
- the value of the
productVersionrecord component
-