@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutEventsRequestEntry extends Object implements Serializable, Cloneable, StructuredPojo
Represents an event to be submitted.
Constructor and Description |
---|
PutEventsRequestEntry() |
Modifier and Type | Method and Description |
---|---|
PutEventsRequestEntry |
clone() |
boolean |
equals(Object obj) |
String |
getDetail()
A valid JSON object.
|
String |
getDetailType()
Free-form string used to decide which fields to expect in the event detail.
|
String |
getEventBusName()
The event bus that will receive the event.
|
List<String> |
getResources()
AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns.
|
String |
getSource()
The source of the event.
|
Date |
getTime()
The timestamp of the event, per RFC3339.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDetail(String detail)
A valid JSON object.
|
void |
setDetailType(String detailType)
Free-form string used to decide which fields to expect in the event detail.
|
void |
setEventBusName(String eventBusName)
The event bus that will receive the event.
|
void |
setResources(Collection<String> resources)
AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns.
|
void |
setSource(String source)
The source of the event.
|
void |
setTime(Date time)
The timestamp of the event, per RFC3339.
|
String |
toString()
Returns a string representation of this object.
|
PutEventsRequestEntry |
withDetail(String detail)
A valid JSON object.
|
PutEventsRequestEntry |
withDetailType(String detailType)
Free-form string used to decide which fields to expect in the event detail.
|
PutEventsRequestEntry |
withEventBusName(String eventBusName)
The event bus that will receive the event.
|
PutEventsRequestEntry |
withResources(Collection<String> resources)
AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns.
|
PutEventsRequestEntry |
withResources(String... resources)
AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns.
|
PutEventsRequestEntry |
withSource(String source)
The source of the event.
|
PutEventsRequestEntry |
withTime(Date time)
The timestamp of the event, per RFC3339.
|
public void setTime(Date time)
public Date getTime()
public PutEventsRequestEntry withTime(Date time)
public void setSource(String source)
The source of the event. This field is required.
source
- The source of the event. This field is required.public String getSource()
The source of the event. This field is required.
public PutEventsRequestEntry withSource(String source)
The source of the event. This field is required.
source
- The source of the event. This field is required.public List<String> getResources()
AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns. Any number, including zero, can be present.
public void setResources(Collection<String> resources)
AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns. Any number, including zero, can be present.
resources
- AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns. Any number,
including zero, can be present.public PutEventsRequestEntry withResources(String... resources)
AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns. Any number, including zero, can be present.
NOTE: This method appends the values to the existing list (if any). Use
setResources(java.util.Collection)
or withResources(java.util.Collection)
if you want to
override the existing values.
resources
- AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns. Any number,
including zero, can be present.public PutEventsRequestEntry withResources(Collection<String> resources)
AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns. Any number, including zero, can be present.
resources
- AWS resources, identified by Amazon Resource Name (ARN), that the event primarily concerns. Any number,
including zero, can be present.public void setDetailType(String detailType)
Free-form string used to decide which fields to expect in the event detail. This field is required.
detailType
- Free-form string used to decide which fields to expect in the event detail. This field is required.public String getDetailType()
Free-form string used to decide which fields to expect in the event detail. This field is required.
public PutEventsRequestEntry withDetailType(String detailType)
Free-form string used to decide which fields to expect in the event detail. This field is required.
detailType
- Free-form string used to decide which fields to expect in the event detail. This field is required.public void setDetail(String detail)
A valid JSON object. There is no other schema imposed. The JSON object can contain fields and nested subobjects.
This field is required.
detail
- A valid JSON object. There is no other schema imposed. The JSON object can contain fields and nested
subobjects.
This field is required.
public String getDetail()
A valid JSON object. There is no other schema imposed. The JSON object can contain fields and nested subobjects.
This field is required.
This field is required.
public PutEventsRequestEntry withDetail(String detail)
A valid JSON object. There is no other schema imposed. The JSON object can contain fields and nested subobjects.
This field is required.
detail
- A valid JSON object. There is no other schema imposed. The JSON object can contain fields and nested
subobjects.
This field is required.
public void setEventBusName(String eventBusName)
The event bus that will receive the event. Only the rules that are associated with this event bus can match the event.
eventBusName
- The event bus that will receive the event. Only the rules that are associated with this event bus can
match the event.public String getEventBusName()
The event bus that will receive the event. Only the rules that are associated with this event bus can match the event.
public PutEventsRequestEntry withEventBusName(String eventBusName)
The event bus that will receive the event. Only the rules that are associated with this event bus can match the event.
eventBusName
- The event bus that will receive the event. Only the rules that are associated with this event bus can
match the event.public String toString()
toString
in class Object
Object.toString()
public PutEventsRequestEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.