Class PutEventsRequestEntry
- java.lang.Object
-
- com.amazonaws.services.cloudwatchevents.model.PutEventsRequestEntry
-
- All Implemented Interfaces:
Serializable,Cloneable
public class PutEventsRequestEntry extends Object implements Serializable, Cloneable
Contains information about the event to be used in PutEvents.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PutEventsRequestEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutEventsRequestEntryclone()booleanequals(Object obj)StringgetDetail()In the JSON sense, an object containing fields, which may also contain nested sub-objects.StringgetDetailType()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.StringgetSource()The source of the event.DategetTime()Timestamp of event, per RFC3339.inthashCode()voidsetDetail(String detail)In the JSON sense, an object containing fields, which may also contain nested sub-objects.voidsetDetailType(String detailType)Free-form string used to decide what fields to expect in the event detail.voidsetResources(Collection<String> resources)AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns.voidsetSource(String source)The source of the event.voidsetTime(Date time)Timestamp of event, per RFC3339.StringtoString()Returns a string representation of this object; useful for testing and debugging.PutEventsRequestEntrywithDetail(String detail)In the JSON sense, an object containing fields, which may also contain nested sub-objects.PutEventsRequestEntrywithDetailType(String detailType)Free-form string used to decide what fields to expect in the event detail.PutEventsRequestEntrywithResources(String... resources)AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns.PutEventsRequestEntrywithResources(Collection<String> resources)AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns.PutEventsRequestEntrywithSource(String source)The source of the event.PutEventsRequestEntrywithTime(Date time)Timestamp of event, per RFC3339.
-
-
-
Method Detail
-
setTime
public void setTime(Date time)
-
getTime
public Date getTime()
-
withTime
public PutEventsRequestEntry withTime(Date time)
-
setSource
public void setSource(String source)
The source of the event.
- Parameters:
source- The source of the event.
-
getSource
public String getSource()
The source of the event.
- Returns:
- The source of the event.
-
withSource
public PutEventsRequestEntry withSource(String source)
The source of the event.
- Parameters:
source- The source of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getResources
public List<String> getResources()
AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
- Returns:
- AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
-
setResources
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.
- Parameters:
resources- AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.
-
withResources
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)orwithResources(java.util.Collection)if you want to override the existing values.- Parameters:
resources- AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withResources
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.
- Parameters:
resources- AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDetailType
public void setDetailType(String detailType)
Free-form string used to decide what fields to expect in the event detail.
- Parameters:
detailType- Free-form string used to decide what fields to expect in the event detail.
-
getDetailType
public String getDetailType()
Free-form string used to decide what fields to expect in the event detail.
- Returns:
- Free-form string used to decide what fields to expect in the event detail.
-
withDetailType
public PutEventsRequestEntry withDetailType(String detailType)
Free-form string used to decide what fields to expect in the event detail.
- Parameters:
detailType- Free-form string used to decide what fields to expect in the event detail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDetail
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.
- Parameters:
detail- In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents.
-
getDetail
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.
- Returns:
- In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents.
-
withDetail
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.
- Parameters:
detail- In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutEventsRequestEntry clone()
-
-