@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, with a maximum of 128 characters, used to decide what fields to expect in the event detail. 
 | 
String | 
getEventBusName()
 The name or ARN of the event bus to receive the event. 
 | 
List<String> | 
getResources()
 Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. 
 | 
String | 
getSource()
 The source of the event. 
 | 
Date | 
getTime()
 The time stamp of the event, per RFC3339. 
 | 
String | 
getTraceHeader()
 An X-Ray trace header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the
 event. 
 | 
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, with a maximum of 128 characters, used to decide what fields to expect in the event detail. 
 | 
void | 
setEventBusName(String eventBusName)
 The name or ARN of the event bus to receive the event. 
 | 
void | 
setResources(Collection<String> resources)
 Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. 
 | 
void | 
setSource(String source)
 The source of the event. 
 | 
void | 
setTime(Date time)
 The time stamp of the event, per RFC3339. 
 | 
void | 
setTraceHeader(String traceHeader)
 An X-Ray trace header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the
 event. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
PutEventsRequestEntry | 
withDetail(String detail)
 A valid JSON object. 
 | 
PutEventsRequestEntry | 
withDetailType(String detailType)
 Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail. 
 | 
PutEventsRequestEntry | 
withEventBusName(String eventBusName)
 The name or ARN of the event bus to receive the event. 
 | 
PutEventsRequestEntry | 
withResources(Collection<String> resources)
 Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. 
 | 
PutEventsRequestEntry | 
withResources(String... resources)
 Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. 
 | 
PutEventsRequestEntry | 
withSource(String source)
 The source of the event. 
 | 
PutEventsRequestEntry | 
withTime(Date time)
 The time stamp of the event, per RFC3339. 
 | 
PutEventsRequestEntry | 
withTraceHeader(String traceHeader)
 An X-Ray trace header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the
 event. 
 | 
public void setTime(Date time)
public Date getTime()
public PutEventsRequestEntry withTime(Date time)
public void setSource(String source)
The source of the event.
 Detail, DetailType, and Source are required for EventBridge to
 successfully send an event to an event bus. If you include event entries in a request that do not include each of
 those properties, EventBridge fails that entry. If you submit a request in which none of the entries have
 each of these properties, EventBridge fails the entire request.
 
source - The source of the event. 
        Detail, DetailType, and Source are required for EventBridge to
        successfully send an event to an event bus. If you include event entries in a request that do not include
        each of those properties, EventBridge fails that entry. If you submit a request in which none of
        the entries have each of these properties, EventBridge fails the entire request.
        
public String getSource()
The source of the event.
 Detail, DetailType, and Source are required for EventBridge to
 successfully send an event to an event bus. If you include event entries in a request that do not include each of
 those properties, EventBridge fails that entry. If you submit a request in which none of the entries have
 each of these properties, EventBridge fails the entire request.
 
         Detail, DetailType, and Source are required for EventBridge to
         successfully send an event to an event bus. If you include event entries in a request that do not include
         each of those properties, EventBridge fails that entry. If you submit a request in which none of
         the entries have each of these properties, EventBridge fails the entire request.
         
public PutEventsRequestEntry withSource(String source)
The source of the event.
 Detail, DetailType, and Source are required for EventBridge to
 successfully send an event to an event bus. If you include event entries in a request that do not include each of
 those properties, EventBridge fails that entry. If you submit a request in which none of the entries have
 each of these properties, EventBridge fails the entire request.
 
source - The source of the event. 
        Detail, DetailType, and Source are required for EventBridge to
        successfully send an event to an event bus. If you include event entries in a request that do not include
        each of those properties, EventBridge fails that entry. If you submit a request in which none of
        the entries have each of these properties, EventBridge fails the entire request.
        
public List<String> getResources()
Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
public void setResources(Collection<String> resources)
Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
resources - Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily
        concerns. Any number, including zero, may be present.public PutEventsRequestEntry withResources(String... resources)
Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may 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 - Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily
        concerns. Any number, including zero, may be present.public PutEventsRequestEntry withResources(Collection<String> resources)
Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
resources - Amazon Web Services resources, identified by Amazon Resource Name (ARN), which the event primarily
        concerns. Any number, including zero, may be present.public void setDetailType(String detailType)
Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
 Detail, DetailType, and Source are required for EventBridge to
 successfully send an event to an event bus. If you include event entries in a request that do not include each of
 those properties, EventBridge fails that entry. If you submit a request in which none of the entries have
 each of these properties, EventBridge fails the entire request.
 
detailType - Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event
        detail. 
        Detail, DetailType, and Source are required for EventBridge to
        successfully send an event to an event bus. If you include event entries in a request that do not include
        each of those properties, EventBridge fails that entry. If you submit a request in which none of
        the entries have each of these properties, EventBridge fails the entire request.
        
public String getDetailType()
Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
 Detail, DetailType, and Source are required for EventBridge to
 successfully send an event to an event bus. If you include event entries in a request that do not include each of
 those properties, EventBridge fails that entry. If you submit a request in which none of the entries have
 each of these properties, EventBridge fails the entire request.
 
         Detail, DetailType, and Source are required for EventBridge to
         successfully send an event to an event bus. If you include event entries in a request that do not include
         each of those properties, EventBridge fails that entry. If you submit a request in which none of
         the entries have each of these properties, EventBridge fails the entire request.
         
public PutEventsRequestEntry withDetailType(String detailType)
Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail.
 Detail, DetailType, and Source are required for EventBridge to
 successfully send an event to an event bus. If you include event entries in a request that do not include each of
 those properties, EventBridge fails that entry. If you submit a request in which none of the entries have
 each of these properties, EventBridge fails the entire request.
 
detailType - Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event
        detail. 
        Detail, DetailType, and Source are required for EventBridge to
        successfully send an event to an event bus. If you include event entries in a request that do not include
        each of those properties, EventBridge fails that entry. If you submit a request in which none of
        the entries have each of these properties, EventBridge fails the entire request.
        
public void setDetail(String detail)
A valid JSON object. There is no other schema imposed. The JSON object may contain fields and nested sub-objects.
 Detail, DetailType, and Source are required for EventBridge to
 successfully send an event to an event bus. If you include event entries in a request that do not include each of
 those properties, EventBridge fails that entry. If you submit a request in which none of the entries have
 each of these properties, EventBridge fails the entire request.
 
detail - A valid JSON object. There is no other schema imposed. The JSON object may contain fields and nested
        sub-objects. 
        Detail, DetailType, and Source are required for EventBridge to
        successfully send an event to an event bus. If you include event entries in a request that do not include
        each of those properties, EventBridge fails that entry. If you submit a request in which none of
        the entries have each of these properties, EventBridge fails the entire request.
        
public String getDetail()
A valid JSON object. There is no other schema imposed. The JSON object may contain fields and nested sub-objects.
 Detail, DetailType, and Source are required for EventBridge to
 successfully send an event to an event bus. If you include event entries in a request that do not include each of
 those properties, EventBridge fails that entry. If you submit a request in which none of the entries have
 each of these properties, EventBridge fails the entire request.
 
         Detail, DetailType, and Source are required for EventBridge to
         successfully send an event to an event bus. If you include event entries in a request that do not include
         each of those properties, EventBridge fails that entry. If you submit a request in which none of
         the entries have each of these properties, EventBridge fails the entire request.
         
public PutEventsRequestEntry withDetail(String detail)
A valid JSON object. There is no other schema imposed. The JSON object may contain fields and nested sub-objects.
 Detail, DetailType, and Source are required for EventBridge to
 successfully send an event to an event bus. If you include event entries in a request that do not include each of
 those properties, EventBridge fails that entry. If you submit a request in which none of the entries have
 each of these properties, EventBridge fails the entire request.
 
detail - A valid JSON object. There is no other schema imposed. The JSON object may contain fields and nested
        sub-objects. 
        Detail, DetailType, and Source are required for EventBridge to
        successfully send an event to an event bus. If you include event entries in a request that do not include
        each of those properties, EventBridge fails that entry. If you submit a request in which none of
        the entries have each of these properties, EventBridge fails the entire request.
        
public void setEventBusName(String eventBusName)
The name or ARN of the event bus to receive the event. Only the rules that are associated with this event bus are used to match the event. If you omit this, the default event bus is used.
 If you're using a global endpoint with a custom bus, you can enter either the name or Amazon Resource Name (ARN)
 of the event bus in either the primary or secondary Region here. EventBridge then determines the corresponding
 event bus in the other Region based on the endpoint referenced by the EndpointId. Specifying the
 event bus ARN is preferred.
 
eventBusName - The name or ARN of the event bus to receive the event. Only the rules that are associated with this event
        bus are used to match the event. If you omit this, the default event bus is used. 
        If you're using a global endpoint with a custom bus, you can enter either the name or Amazon Resource Name
        (ARN) of the event bus in either the primary or secondary Region here. EventBridge then determines the
        corresponding event bus in the other Region based on the endpoint referenced by the
        EndpointId. Specifying the event bus ARN is preferred.
        
public String getEventBusName()
The name or ARN of the event bus to receive the event. Only the rules that are associated with this event bus are used to match the event. If you omit this, the default event bus is used.
 If you're using a global endpoint with a custom bus, you can enter either the name or Amazon Resource Name (ARN)
 of the event bus in either the primary or secondary Region here. EventBridge then determines the corresponding
 event bus in the other Region based on the endpoint referenced by the EndpointId. Specifying the
 event bus ARN is preferred.
 
         If you're using a global endpoint with a custom bus, you can enter either the name or Amazon Resource
         Name (ARN) of the event bus in either the primary or secondary Region here. EventBridge then determines
         the corresponding event bus in the other Region based on the endpoint referenced by the
         EndpointId. Specifying the event bus ARN is preferred.
         
public PutEventsRequestEntry withEventBusName(String eventBusName)
The name or ARN of the event bus to receive the event. Only the rules that are associated with this event bus are used to match the event. If you omit this, the default event bus is used.
 If you're using a global endpoint with a custom bus, you can enter either the name or Amazon Resource Name (ARN)
 of the event bus in either the primary or secondary Region here. EventBridge then determines the corresponding
 event bus in the other Region based on the endpoint referenced by the EndpointId. Specifying the
 event bus ARN is preferred.
 
eventBusName - The name or ARN of the event bus to receive the event. Only the rules that are associated with this event
        bus are used to match the event. If you omit this, the default event bus is used. 
        If you're using a global endpoint with a custom bus, you can enter either the name or Amazon Resource Name
        (ARN) of the event bus in either the primary or secondary Region here. EventBridge then determines the
        corresponding event bus in the other Region based on the endpoint referenced by the
        EndpointId. Specifying the event bus ARN is preferred.
        
public void setTraceHeader(String traceHeader)
An X-Ray trace header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the event.
To learn more about X-Ray trace headers, see Tracing header in the X-Ray Developer Guide.
traceHeader - An X-Ray trace header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated
        with the event.
        To learn more about X-Ray trace headers, see Tracing header in the X-Ray Developer Guide.
public String getTraceHeader()
An X-Ray trace header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the event.
To learn more about X-Ray trace headers, see Tracing header in the X-Ray Developer Guide.
To learn more about X-Ray trace headers, see Tracing header in the X-Ray Developer Guide.
public PutEventsRequestEntry withTraceHeader(String traceHeader)
An X-Ray trace header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with the event.
To learn more about X-Ray trace headers, see Tracing header in the X-Ray Developer Guide.
traceHeader - An X-Ray trace header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated
        with the event.
        To learn more about X-Ray trace headers, see Tracing header in the X-Ray Developer Guide.
public String toString()
toString in class ObjectObject.toString()public PutEventsRequestEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.