public class PutEventsRequestEntry
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about the event to be used in PutEvents.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
detail
In the JSON sense, an object containing fields, which may also contain
nested sub-objects.
|
private java.lang.String |
detailType
Free-form string used to decide what fields to expect in the event
detail.
|
private java.util.List<java.lang.String> |
resources
AWS resources, identified by Amazon Resource Name (ARN), which the event
primarily concerns.
|
private java.lang.String |
source
The source of the event.
|
private java.util.Date |
time
Timestamp of event, per RFC3339.
|
Constructor and Description |
---|
PutEventsRequestEntry() |
Modifier and Type | Method and Description |
---|---|
PutEventsRequestEntry |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDetail()
In the JSON sense, an object containing fields, which may also contain
nested sub-objects.
|
java.lang.String |
getDetailType()
Free-form string used to decide what fields to expect in the event
detail.
|
java.util.List<java.lang.String> |
getResources()
AWS resources, identified by Amazon Resource Name (ARN), which the event
primarily concerns.
|
java.lang.String |
getSource()
The source of the event.
|
java.util.Date |
getTime()
Timestamp of event, per RFC3339.
|
int |
hashCode() |
void |
setDetail(java.lang.String detail)
In the JSON sense, an object containing fields, which may also contain
nested sub-objects.
|
void |
setDetailType(java.lang.String detailType)
Free-form string used to decide what fields to expect in the event
detail.
|
void |
setResources(java.util.Collection<java.lang.String> resources)
AWS resources, identified by Amazon Resource Name (ARN), which the event
primarily concerns.
|
void |
setSource(java.lang.String source)
The source of the event.
|
void |
setTime(java.util.Date time)
Timestamp of event, per RFC3339.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutEventsRequestEntry |
withDetail(java.lang.String detail)
In the JSON sense, an object containing fields, which may also contain
nested sub-objects.
|
PutEventsRequestEntry |
withDetailType(java.lang.String detailType)
Free-form string used to decide what fields to expect in the event
detail.
|
PutEventsRequestEntry |
withResources(java.util.Collection<java.lang.String> resources)
AWS resources, identified by Amazon Resource Name (ARN), which the event
primarily concerns.
|
PutEventsRequestEntry |
withResources(java.lang.String... resources)
AWS resources, identified by Amazon Resource Name (ARN), which the event
primarily concerns.
|
PutEventsRequestEntry |
withSource(java.lang.String source)
The source of the event.
|
PutEventsRequestEntry |
withTime(java.util.Date time)
Timestamp of event, per RFC3339.
|
private java.util.Date time
private java.lang.String source
The source of the event.
private java.util.List<java.lang.String> resources
AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
private java.lang.String detailType
Free-form string used to decide what fields to expect in the event detail.
private java.lang.String detail
In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents.
public void setTime(java.util.Date time)
public java.util.Date getTime()
public PutEventsRequestEntry withTime(java.util.Date time)
public void setSource(java.lang.String source)
The source of the event.
source
- The source of the event.public java.lang.String getSource()
The source of the event.
public PutEventsRequestEntry withSource(java.lang.String source)
The source of the event.
source
- The source of the event.public java.util.List<java.lang.String> getResources()
AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
public void setResources(java.util.Collection<java.lang.String> resources)
AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
resources
- AWS resources, identified by Amazon Resource Name (ARN), which the
event primarily concerns. Any number, including zero, may be
present.public PutEventsRequestEntry withResources(java.lang.String... resources)
AWS 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
- AWS resources, identified by Amazon Resource Name (ARN), which the
event primarily concerns. Any number, including zero, may be
present.public PutEventsRequestEntry withResources(java.util.Collection<java.lang.String> resources)
AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
resources
- AWS resources, identified by Amazon Resource Name (ARN), which the
event primarily concerns. Any number, including zero, may be
present.public void setDetailType(java.lang.String detailType)
Free-form string used to decide what fields to expect in the event detail.
detailType
- Free-form string used to decide what fields to expect in the event
detail.public java.lang.String getDetailType()
Free-form string used to decide what fields to expect in the event detail.
public PutEventsRequestEntry withDetailType(java.lang.String detailType)
Free-form string used to decide what fields to expect in the event detail.
detailType
- Free-form string used to decide what fields to expect in the event
detail.public void setDetail(java.lang.String detail)
In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents.
detail
- In the JSON sense, an object containing fields, which may also
contain nested sub-objects. No constraints are imposed on its
contents.public java.lang.String getDetail()
In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents.
public PutEventsRequestEntry withDetail(java.lang.String detail)
In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents.
detail
- In the JSON sense, an object containing fields, which may also
contain nested sub-objects. No constraints are imposed on its
contents.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutEventsRequestEntry clone()
clone
in class java.lang.Object