@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 push
public String getName()
The name of the event. The possible names are pull_request
, workflow_dispatch
,
schedule
, and push
pull_request
, workflow_dispatch
,
schedule
, and push
public 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 push
public 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 Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.