@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventInfo extends Object implements Serializable, Cloneable, StructuredPojo
Information about an event. The event might be a push, pull request, scheduled request, or another type of event.
| Constructor and Description |
|---|
EventInfo() |
| Modifier and Type | Method and Description |
|---|---|
EventInfo |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the event.
|
String |
getState()
The state of an event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
The name of the event.
|
void |
setState(String state)
The state of an event.
|
String |
toString()
Returns a string representation of this object.
|
EventInfo |
withName(String name)
The name of the event.
|
EventInfo |
withState(String state)
The state of an event.
|
public void setName(String name)
The name of the event. The possible names are pull_request, workflow_dispatch,
schedule, and push
name - The name of the event. The possible names are pull_request, workflow_dispatch,
schedule, and pushpublic String getName()
The name of the event. The possible names are pull_request, workflow_dispatch,
schedule, and push
pull_request, workflow_dispatch,
schedule, and pushpublic EventInfo withName(String name)
The name of the event. The possible names are pull_request, workflow_dispatch,
schedule, and push
name - The name of the event. The possible names are pull_request, workflow_dispatch,
schedule, and pushpublic void setState(String state)
The state of an event. The state might be open, closed, or another state.
state - The state of an event. The state might be open, closed, or another state.public String getState()
The state of an event. The state might be open, closed, or another state.
public EventInfo withState(String state)
The state of an event. The state might be open, closed, or another state.
state - The state of an event. The state might be open, closed, or another state.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.