@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PartnerEventSourceAccount extends Object implements Serializable, Cloneable, StructuredPojo
The Amazon Web Services account that a partner event source has been offered to.
Constructor and Description |
---|
PartnerEventSourceAccount() |
Modifier and Type | Method and Description |
---|---|
PartnerEventSourceAccount |
clone() |
boolean |
equals(Object obj) |
String |
getAccount()
The Amazon Web Services account ID that the partner event source was offered to.
|
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 |
getState()
The state of the event source.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccount(String account)
The Amazon Web Services account ID that the partner event source was offered to.
|
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 |
setState(String state)
The state of the event source.
|
String |
toString()
Returns a string representation of this object.
|
PartnerEventSourceAccount |
withAccount(String account)
The Amazon Web Services account ID that the partner event source was offered to.
|
PartnerEventSourceAccount |
withCreationTime(Date creationTime)
The date and time the event source was created.
|
PartnerEventSourceAccount |
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.
|
PartnerEventSourceAccount |
withState(EventSourceState state)
The state of the event source.
|
PartnerEventSourceAccount |
withState(String state)
The state of the event source.
|
public void setAccount(String account)
The Amazon Web Services account ID that the partner event source was offered to.
account
- The Amazon Web Services account ID that the partner event source was offered to.public String getAccount()
The Amazon Web Services account ID that the partner event source was offered to.
public PartnerEventSourceAccount withAccount(String account)
The Amazon Web Services account ID that the partner event source was offered to.
account
- The Amazon Web Services account ID that the partner event source was offered to.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 PartnerEventSourceAccount 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 PartnerEventSourceAccount 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 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 PartnerEventSourceAccount 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 PartnerEventSourceAccount 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 PartnerEventSourceAccount clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.