@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTimelineEventRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateTimelineEventRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTimelineEventRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
A token that ensures that a client calls the action only once with the specified details.
|
String |
getEventData()
A short description of the event.
|
List<EventReference> |
getEventReferences()
Adds one or more references to the
TimelineEvent . |
Date |
getEventTime()
The timestamp for when the event occurred.
|
String |
getEventType()
The type of event.
|
String |
getIncidentRecordArn()
The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A token that ensures that a client calls the action only once with the specified details.
|
void |
setEventData(String eventData)
A short description of the event.
|
void |
setEventReferences(Collection<EventReference> eventReferences)
Adds one or more references to the
TimelineEvent . |
void |
setEventTime(Date eventTime)
The timestamp for when the event occurred.
|
void |
setEventType(String eventType)
The type of event.
|
void |
setIncidentRecordArn(String incidentRecordArn)
The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.
|
String |
toString()
Returns a string representation of this object.
|
CreateTimelineEventRequest |
withClientToken(String clientToken)
A token that ensures that a client calls the action only once with the specified details.
|
CreateTimelineEventRequest |
withEventData(String eventData)
A short description of the event.
|
CreateTimelineEventRequest |
withEventReferences(Collection<EventReference> eventReferences)
Adds one or more references to the
TimelineEvent . |
CreateTimelineEventRequest |
withEventReferences(EventReference... eventReferences)
Adds one or more references to the
TimelineEvent . |
CreateTimelineEventRequest |
withEventTime(Date eventTime)
The timestamp for when the event occurred.
|
CreateTimelineEventRequest |
withEventType(String eventType)
The type of event.
|
CreateTimelineEventRequest |
withIncidentRecordArn(String incidentRecordArn)
The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClientToken(String clientToken)
A token that ensures that a client calls the action only once with the specified details.
clientToken
- A token that ensures that a client calls the action only once with the specified details.public String getClientToken()
A token that ensures that a client calls the action only once with the specified details.
public CreateTimelineEventRequest withClientToken(String clientToken)
A token that ensures that a client calls the action only once with the specified details.
clientToken
- A token that ensures that a client calls the action only once with the specified details.public void setEventData(String eventData)
A short description of the event.
eventData
- A short description of the event.public String getEventData()
A short description of the event.
public CreateTimelineEventRequest withEventData(String eventData)
A short description of the event.
eventData
- A short description of the event.public List<EventReference> getEventReferences()
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.
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 void setEventReferences(Collection<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.
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.public CreateTimelineEventRequest withEventReferences(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.
NOTE: This method appends the values to the existing list (if any). Use
setEventReferences(java.util.Collection)
or withEventReferences(java.util.Collection)
if you
want to override the existing values.
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.public CreateTimelineEventRequest withEventReferences(Collection<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.
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.public void setEventTime(Date eventTime)
The timestamp for when the event occurred.
eventTime
- The timestamp for when the event occurred.public Date getEventTime()
The timestamp for when the event occurred.
public CreateTimelineEventRequest withEventTime(Date eventTime)
The timestamp for when the event occurred.
eventTime
- The timestamp for when the event occurred.public void setEventType(String eventType)
The type of event. You can create timeline events of type Custom Event
and Note
.
To make a Note-type event appear on the Incident notes panel in the console, specify
eventType
as Note
and enter the Amazon Resource Name (ARN) of the incident as the value
for eventReference
.
eventType
- The type of event. You can create timeline events of type Custom Event
and Note
.
To make a Note-type event appear on the Incident notes panel in the console, specify
eventType
as Note
and enter the Amazon Resource Name (ARN) of the incident as the
value for eventReference
.
public String getEventType()
The type of event. You can create timeline events of type Custom Event
and Note
.
To make a Note-type event appear on the Incident notes panel in the console, specify
eventType
as Note
and enter the Amazon Resource Name (ARN) of the incident as the value
for eventReference
.
Custom Event
and Note
.
To make a Note-type event appear on the Incident notes panel in the console, specify
eventType
as Note
and enter the Amazon Resource Name (ARN) of the incident as
the value for eventReference
.
public CreateTimelineEventRequest withEventType(String eventType)
The type of event. You can create timeline events of type Custom Event
and Note
.
To make a Note-type event appear on the Incident notes panel in the console, specify
eventType
as Note
and enter the Amazon Resource Name (ARN) of the incident as the value
for eventReference
.
eventType
- The type of event. You can create timeline events of type Custom Event
and Note
.
To make a Note-type event appear on the Incident notes panel in the console, specify
eventType
as Note
and enter the Amazon Resource Name (ARN) of the incident as the
value for eventReference
.
public void setIncidentRecordArn(String incidentRecordArn)
The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.
incidentRecordArn
- The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.public String getIncidentRecordArn()
The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.
public CreateTimelineEventRequest withIncidentRecordArn(String incidentRecordArn)
The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.
incidentRecordArn
- The Amazon Resource Name (ARN) of the incident record that the action adds the incident to.public String toString()
toString
in class Object
Object.toString()
public CreateTimelineEventRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()