@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventReference extends Object implements Serializable, Cloneable, StructuredPojo
An item referenced in a TimelineEvent
that is involved in or somehow associated with an incident. You
can specify an Amazon Resource Name (ARN) for an Amazon Web Services resource or a RelatedItem
ID.
Constructor and Description |
---|
EventReference() |
Modifier and Type | Method and Description |
---|---|
EventReference |
clone() |
boolean |
equals(Object obj) |
String |
getRelatedItemId()
The ID of a
RelatedItem referenced in a TimelineEvent . |
String |
getResource()
The Amazon Resource Name (ARN) of an Amazon Web Services resource referenced in a
TimelineEvent . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRelatedItemId(String relatedItemId)
The ID of a
RelatedItem referenced in a TimelineEvent . |
void |
setResource(String resource)
The Amazon Resource Name (ARN) of an Amazon Web Services resource referenced in a
TimelineEvent . |
String |
toString()
Returns a string representation of this object.
|
EventReference |
withRelatedItemId(String relatedItemId)
The ID of a
RelatedItem referenced in a TimelineEvent . |
EventReference |
withResource(String resource)
The Amazon Resource Name (ARN) of an Amazon Web Services resource referenced in a
TimelineEvent . |
public void setRelatedItemId(String relatedItemId)
The ID of a RelatedItem
referenced in a TimelineEvent
.
relatedItemId
- The ID of a RelatedItem
referenced in a TimelineEvent
.public String getRelatedItemId()
The ID of a RelatedItem
referenced in a TimelineEvent
.
RelatedItem
referenced in a TimelineEvent
.public EventReference withRelatedItemId(String relatedItemId)
The ID of a RelatedItem
referenced in a TimelineEvent
.
relatedItemId
- The ID of a RelatedItem
referenced in a TimelineEvent
.public void setResource(String resource)
The Amazon Resource Name (ARN) of an Amazon Web Services resource referenced in a TimelineEvent
.
resource
- The Amazon Resource Name (ARN) of an Amazon Web Services resource referenced in a
TimelineEvent
.public String getResource()
The Amazon Resource Name (ARN) of an Amazon Web Services resource referenced in a TimelineEvent
.
TimelineEvent
.public EventReference withResource(String resource)
The Amazon Resource Name (ARN) of an Amazon Web Services resource referenced in a TimelineEvent
.
resource
- The Amazon Resource Name (ARN) of an Amazon Web Services resource referenced in a
TimelineEvent
.public String toString()
toString
in class Object
Object.toString()
public EventReference clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.