@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventSource extends Object implements Serializable, Cloneable, StructuredPojo
Specifies an event that triggers 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.EventSourceValues
public String getType()
The source of the event. Currently only managed CloudWatch Events rules are supported.
EventSourceValues
public 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.EventSourceValues
public 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.EventSourceValues
public 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 Object
Object.toString()
public EventSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.