@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventSource extends Object implements Serializable, Cloneable, StructuredPojo
[Event-based policies only] Specifies an event that activates an event-based policy.
| Constructor and Description |
|---|
EventSource() |
| Modifier and Type | Method and Description |
|---|---|
EventSource |
clone() |
boolean |
equals(Object obj) |
EventParameters |
getParameters()
Information about the event.
|
String |
getType()
The source of the event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setParameters(EventParameters parameters)
Information about the event.
|
void |
setType(String type)
The source of the event.
|
String |
toString()
Returns a string representation of this object.
|
EventSource |
withParameters(EventParameters parameters)
Information about the event.
|
EventSource |
withType(EventSourceValues type)
The source of the event.
|
EventSource |
withType(String type)
The source of the event.
|
public void setType(String type)
The source of the event. Currently only managed CloudWatch Events rules are supported.
type - The source of the event. Currently only managed CloudWatch Events rules are supported.EventSourceValuespublic String getType()
The source of the event. Currently only managed CloudWatch Events rules are supported.
EventSourceValuespublic EventSource withType(String type)
The source of the event. Currently only managed CloudWatch Events rules are supported.
type - The source of the event. Currently only managed CloudWatch Events rules are supported.EventSourceValuespublic EventSource withType(EventSourceValues type)
The source of the event. Currently only managed CloudWatch Events rules are supported.
type - The source of the event. Currently only managed CloudWatch Events rules are supported.EventSourceValuespublic void setParameters(EventParameters parameters)
Information about the event.
parameters - Information about the event.public EventParameters getParameters()
Information about the event.
public EventSource withParameters(EventParameters parameters)
Information about the event.
parameters - Information about the event.public String toString()
toString in class ObjectObject.toString()public EventSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.