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