Package cloud.spawnery.agent.api
Record Class CloudEventInfo
java.lang.Object
java.lang.Record
cloud.spawnery.agent.api.CloudEventInfo
- Record Components:
kind- the operator's reason, in UpperCamelCase —ReadyGatePassed,PodRejected. A string and not an enum, because the operator's vocabulary gains values. Match on the ones you know and pass the rest through.subject- what the event is about — a server name, or a group name for an event about a group.group- the group the subject belongs to, or the subject itself when the event is about a group. Never empty.warning- whether this is the ordinary case or the one somebody should look at.
public record CloudEventInfo(String kind, String subject, String group, String message, boolean warning)
extends Record
One thing that happened in the cloud.
One per transition, not the collapsed summary a player sees in chat. The
message is the same sentence kubectl get events shows for
this event.
-
Constructor Summary
ConstructorsConstructorDescriptionCloudEventInfo(String kind, String subject, String group, String message, boolean warning) Creates an instance of aCloudEventInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.message()Returns the value of themessagerecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.booleanwarning()Returns the value of thewarningrecord component.
-
Constructor Details
-
CloudEventInfo
Creates an instance of aCloudEventInforecord class.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
warning
public boolean warning()Returns the value of thewarningrecord component.- Returns:
- the value of the
warningrecord component
-