@Generated(value="software.amazon.awssdk:codegen") public final class CreateTimelineEventRequest extends SsmIncidentsRequest implements ToCopyableBuilder<CreateTimelineEventRequest.Builder,CreateTimelineEventRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateTimelineEventRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateTimelineEventRequest.Builder |
builder() |
String |
clientToken()
A token that ensures that a client calls the action only once with the specified details.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eventData()
A short description of the event.
|
List<EventReference> |
eventReferences()
Adds one or more references to the
TimelineEvent. |
Instant |
eventTime()
The time that the event occurred.
|
String |
eventType()
The type of event.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasEventReferences()
For responses, this returns true if the service returned a value for the EventReferences property.
|
int |
hashCode() |
String |
incidentRecordArn()
The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateTimelineEventRequest.Builder> |
serializableBuilderClass() |
CreateTimelineEventRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String clientToken()
A token that ensures that a client calls the action only once with the specified details.
public final String eventData()
A short description of the event.
public final boolean hasEventReferences()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<EventReference> eventReferences()
Adds one or more references to the TimelineEvent. A reference is an Amazon Web Services resource
involved or associated with the incident. To specify a reference, enter its Amazon Resource Name (ARN). You can
also specify a related item associated with a resource. For example, to specify an Amazon DynamoDB (DynamoDB)
table as a resource, use the table's ARN. You can also specify an Amazon CloudWatch metric associated with the
DynamoDB table as a related item.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasEventReferences() method.
TimelineEvent. A reference is an Amazon Web Services
resource involved or associated with the incident. To specify a reference, enter its Amazon Resource Name
(ARN). You can also specify a related item associated with a resource. For example, to specify an Amazon
DynamoDB (DynamoDB) table as a resource, use the table's ARN. You can also specify an Amazon CloudWatch
metric associated with the DynamoDB table as a related item.public final Instant eventTime()
The time that the event occurred.
public final String eventType()
The type of event. You can create timeline events of type Custom Event.
Custom Event.public final String incidentRecordArn()
The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.
public CreateTimelineEventRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateTimelineEventRequest.Builder,CreateTimelineEventRequest>toBuilder in class SsmIncidentsRequestpublic static CreateTimelineEventRequest.Builder builder()
public static Class<? extends CreateTimelineEventRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.