@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventSource extends Object implements Serializable, Cloneable, StructuredPojo
A partner event source is created by an SaaS partner. If a customer creates a partner event bus that matches this event source, that Amazon Web Services account can receive events from the partner's applications or services.
Constructor and Description |
---|
EventSource() |
Modifier and Type | Method and Description |
---|---|
EventSource |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the event source.
|
String |
getCreatedBy()
The name of the partner that created the event source.
|
Date |
getCreationTime()
The date and time the event source was created.
|
Date |
getExpirationTime()
The date and time that the event source will expire, if the Amazon Web Services account doesn't create a matching
event bus for it.
|
String |
getName()
The name of the event source.
|
String |
getState()
The state of the event source.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN of the event source.
|
void |
setCreatedBy(String createdBy)
The name of the partner that created the event source.
|
void |
setCreationTime(Date creationTime)
The date and time the event source was created.
|
void |
setExpirationTime(Date expirationTime)
The date and time that the event source will expire, if the Amazon Web Services account doesn't create a matching
event bus for it.
|
void |
setName(String name)
The name of the event source.
|
void |
setState(String state)
The state of the event source.
|
String |
toString()
Returns a string representation of this object.
|
EventSource |
withArn(String arn)
The ARN of the event source.
|
EventSource |
withCreatedBy(String createdBy)
The name of the partner that created the event source.
|
EventSource |
withCreationTime(Date creationTime)
The date and time the event source was created.
|
EventSource |
withExpirationTime(Date expirationTime)
The date and time that the event source will expire, if the Amazon Web Services account doesn't create a matching
event bus for it.
|
EventSource |
withName(String name)
The name of the event source.
|
EventSource |
withState(EventSourceState state)
The state of the event source.
|
EventSource |
withState(String state)
The state of the event source.
|
public void setArn(String arn)
The ARN of the event source.
arn
- The ARN of the event source.public String getArn()
The ARN of the event source.
public EventSource withArn(String arn)
The ARN of the event source.
arn
- The ARN of the event source.public void setCreatedBy(String createdBy)
The name of the partner that created the event source.
createdBy
- The name of the partner that created the event source.public String getCreatedBy()
The name of the partner that created the event source.
public EventSource withCreatedBy(String createdBy)
The name of the partner that created the event source.
createdBy
- The name of the partner that created the event source.public void setCreationTime(Date creationTime)
The date and time the event source was created.
creationTime
- The date and time the event source was created.public Date getCreationTime()
The date and time the event source was created.
public EventSource withCreationTime(Date creationTime)
The date and time the event source was created.
creationTime
- The date and time the event source was created.public void setExpirationTime(Date expirationTime)
The date and time that the event source will expire, if the Amazon Web Services account doesn't create a matching event bus for it.
expirationTime
- The date and time that the event source will expire, if the Amazon Web Services account doesn't create a
matching event bus for it.public Date getExpirationTime()
The date and time that the event source will expire, if the Amazon Web Services account doesn't create a matching event bus for it.
public EventSource withExpirationTime(Date expirationTime)
The date and time that the event source will expire, if the Amazon Web Services account doesn't create a matching event bus for it.
expirationTime
- The date and time that the event source will expire, if the Amazon Web Services account doesn't create a
matching event bus for it.public void setName(String name)
The name of the event source.
name
- The name of the event source.public String getName()
The name of the event source.
public EventSource withName(String name)
The name of the event source.
name
- The name of the event source.public void setState(String state)
The state of the event source. If it is ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but the event source has since been deleted.
state
- The state of the event source. If it is ACTIVE, you have already created a matching event bus for this
event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching
event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but
the event source has since been deleted.EventSourceState
public String getState()
The state of the event source. If it is ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but the event source has since been deleted.
EventSourceState
public EventSource withState(String state)
The state of the event source. If it is ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but the event source has since been deleted.
state
- The state of the event source. If it is ACTIVE, you have already created a matching event bus for this
event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching
event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but
the event source has since been deleted.EventSourceState
public EventSource withState(EventSourceState state)
The state of the event source. If it is ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but the event source has since been deleted.
state
- The state of the event source. If it is ACTIVE, you have already created a matching event bus for this
event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching
event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but
the event source has since been deleted.EventSourceState
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.