Record Class PermissionManifestClient.Observation
java.lang.Object
java.lang.Record
com.chaosguide.iam.vertex.manifest.PermissionManifestClient.Observation
- Enclosing class:
PermissionManifestClient
-
Constructor Summary
ConstructorsConstructorDescriptionObservation(String mode, String outcome, int status, Duration duration) Creates an instance of aObservationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.outcome()Returns the value of theoutcomerecord component.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Observation
Creates an instance of aObservationrecord class.- Parameters:
mode- the value for themoderecord componentoutcome- the value for theoutcomerecord componentstatus- the value for thestatusrecord componentduration- the value for thedurationrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
status
public int status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-