@Generated(value="software.amazon.awssdk:codegen") public final class PutEventsRequestEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PutEventsRequestEntry.Builder,PutEventsRequestEntry>
Represents an event to be submitted.
Modifier and Type | Class and Description |
---|---|
static interface |
PutEventsRequestEntry.Builder |
Modifier and Type | Method and Description |
---|---|
static PutEventsRequestEntry.Builder |
builder() |
String |
detail()
A valid JSON string.
|
String |
detailType()
Free-form string used to decide what fields to expect in the event detail.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
String |
eventBusName()
The name or ARN of the event bus to receive the event.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasResources()
Returns true if the Resources property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
List<String> |
resources()
AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutEventsRequestEntry.Builder> |
serializableBuilderClass() |
String |
source()
The source of the event.
|
Instant |
time()
The time stamp of the event, per RFC3339.
|
PutEventsRequestEntry.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
String |
traceHeader()
An AWS X-Ray trade header, which is an http header (X-Amzn-Trace-Id) that contains the trace-id associated with
the event.
|
copy
public final Instant time()
public final String source()
The source of the event.
public final boolean hasResources()
public final List<String> resources()
AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasResources()
to see if a value was sent in this field.
public final String detailType()
Free-form string used to decide what fields to expect in the event detail.
public final String detail()
A valid JSON string. There is no other schema imposed. The JSON string may contain fields and nested subobjects.
public final 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.
public final String traceHeader()
An AWS X-Ray trade 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 AWS X-Ray Developer Guide.
To learn more about X-Ray trace headers, see Tracing header in the AWS X-Ray Developer Guide.
public PutEventsRequestEntry.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PutEventsRequestEntry.Builder,PutEventsRequestEntry>
public static PutEventsRequestEntry.Builder builder()
public static Class<? extends PutEventsRequestEntry.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()