Record Class CloudClient.Cluster
java.lang.Object
java.lang.Record
com.cockroachlabs.data.continuum.cloud.CloudClient.Cluster
- Enclosing interface:
CloudClient
public static record CloudClient.Cluster(String id, String name, String plan, String state, String cloudProvider, List<String> regions)
extends Record
A CockroachDB Cloud cluster (control-plane view).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecloudProviderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.plan()Returns the value of theplanrecord component.regions()Returns the value of theregionsrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Cluster
public Cluster(String id, String name, String plan, String state, String cloudProvider, List<String> regions) Creates an instance of aClusterrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentplan- the value for theplanrecord componentstate- the value for thestaterecord componentcloudProvider- the value for thecloudProviderrecord componentregions- the value for theregionsrecord component
-
-
Method Details
-
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. -
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. -
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
plan
Returns the value of theplanrecord component.- Returns:
- the value of the
planrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
cloudProvider
Returns the value of thecloudProviderrecord component.- Returns:
- the value of the
cloudProviderrecord component
-
regions
Returns the value of theregionsrecord component.- Returns:
- the value of the
regionsrecord component
-