@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Endpoint extends Object implements Serializable, Cloneable, StructuredPojo
A global endpoint used to improve your application's availability by making it regional-fault tolerant. For more information about global endpoints, see Making applications Regional-fault tolerant with global endpoints and event replication in the Amazon EventBridge User Guide .
Constructor and Description |
---|
Endpoint() |
Modifier and Type | Method and Description |
---|---|
Endpoint |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the endpoint.
|
Date |
getCreationTime()
The time the endpoint was created.
|
String |
getDescription()
A description for the endpoint.
|
String |
getEndpointId()
The URL subdomain of the endpoint.
|
String |
getEndpointUrl()
The URL of the endpoint.
|
List<EndpointEventBus> |
getEventBuses()
The event buses being used by the endpoint.
|
Date |
getLastModifiedTime()
The last time the endpoint was modified.
|
String |
getName()
The name of the endpoint.
|
ReplicationConfig |
getReplicationConfig()
Whether event replication was enabled or disabled for this endpoint.
|
String |
getRoleArn()
The ARN of the role used by event replication for the endpoint.
|
RoutingConfig |
getRoutingConfig()
The routing configuration of the endpoint.
|
String |
getState()
The current state of the endpoint.
|
String |
getStateReason()
The reason the endpoint is in its current state.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN of the endpoint.
|
void |
setCreationTime(Date creationTime)
The time the endpoint was created.
|
void |
setDescription(String description)
A description for the endpoint.
|
void |
setEndpointId(String endpointId)
The URL subdomain of the endpoint.
|
void |
setEndpointUrl(String endpointUrl)
The URL of the endpoint.
|
void |
setEventBuses(Collection<EndpointEventBus> eventBuses)
The event buses being used by the endpoint.
|
void |
setLastModifiedTime(Date lastModifiedTime)
The last time the endpoint was modified.
|
void |
setName(String name)
The name of the endpoint.
|
void |
setReplicationConfig(ReplicationConfig replicationConfig)
Whether event replication was enabled or disabled for this endpoint.
|
void |
setRoleArn(String roleArn)
The ARN of the role used by event replication for the endpoint.
|
void |
setRoutingConfig(RoutingConfig routingConfig)
The routing configuration of the endpoint.
|
void |
setState(String state)
The current state of the endpoint.
|
void |
setStateReason(String stateReason)
The reason the endpoint is in its current state.
|
String |
toString()
Returns a string representation of this object.
|
Endpoint |
withArn(String arn)
The ARN of the endpoint.
|
Endpoint |
withCreationTime(Date creationTime)
The time the endpoint was created.
|
Endpoint |
withDescription(String description)
A description for the endpoint.
|
Endpoint |
withEndpointId(String endpointId)
The URL subdomain of the endpoint.
|
Endpoint |
withEndpointUrl(String endpointUrl)
The URL of the endpoint.
|
Endpoint |
withEventBuses(Collection<EndpointEventBus> eventBuses)
The event buses being used by the endpoint.
|
Endpoint |
withEventBuses(EndpointEventBus... eventBuses)
The event buses being used by the endpoint.
|
Endpoint |
withLastModifiedTime(Date lastModifiedTime)
The last time the endpoint was modified.
|
Endpoint |
withName(String name)
The name of the endpoint.
|
Endpoint |
withReplicationConfig(ReplicationConfig replicationConfig)
Whether event replication was enabled or disabled for this endpoint.
|
Endpoint |
withRoleArn(String roleArn)
The ARN of the role used by event replication for the endpoint.
|
Endpoint |
withRoutingConfig(RoutingConfig routingConfig)
The routing configuration of the endpoint.
|
Endpoint |
withState(EndpointState state)
The current state of the endpoint.
|
Endpoint |
withState(String state)
The current state of the endpoint.
|
Endpoint |
withStateReason(String stateReason)
The reason the endpoint is in its current state.
|
public void setName(String name)
The name of the endpoint.
name
- The name of the endpoint.public String getName()
The name of the endpoint.
public Endpoint withName(String name)
The name of the endpoint.
name
- The name of the endpoint.public void setDescription(String description)
A description for the endpoint.
description
- A description for the endpoint.public String getDescription()
A description for the endpoint.
public Endpoint withDescription(String description)
A description for the endpoint.
description
- A description for the endpoint.public void setArn(String arn)
The ARN of the endpoint.
arn
- The ARN of the endpoint.public String getArn()
The ARN of the endpoint.
public Endpoint withArn(String arn)
The ARN of the endpoint.
arn
- The ARN of the endpoint.public void setRoutingConfig(RoutingConfig routingConfig)
The routing configuration of the endpoint.
routingConfig
- The routing configuration of the endpoint.public RoutingConfig getRoutingConfig()
The routing configuration of the endpoint.
public Endpoint withRoutingConfig(RoutingConfig routingConfig)
The routing configuration of the endpoint.
routingConfig
- The routing configuration of the endpoint.public void setReplicationConfig(ReplicationConfig replicationConfig)
Whether event replication was enabled or disabled for this endpoint. The default state is ENABLED
which means you must supply a RoleArn
. If you don't have a RoleArn
or you don't want
event replication enabled, set the state to DISABLED
.
replicationConfig
- Whether event replication was enabled or disabled for this endpoint. The default state is
ENABLED
which means you must supply a RoleArn
. If you don't have a
RoleArn
or you don't want event replication enabled, set the state to DISABLED
.public ReplicationConfig getReplicationConfig()
Whether event replication was enabled or disabled for this endpoint. The default state is ENABLED
which means you must supply a RoleArn
. If you don't have a RoleArn
or you don't want
event replication enabled, set the state to DISABLED
.
ENABLED
which means you must supply a RoleArn
. If you don't have a
RoleArn
or you don't want event replication enabled, set the state to DISABLED
.public Endpoint withReplicationConfig(ReplicationConfig replicationConfig)
Whether event replication was enabled or disabled for this endpoint. The default state is ENABLED
which means you must supply a RoleArn
. If you don't have a RoleArn
or you don't want
event replication enabled, set the state to DISABLED
.
replicationConfig
- Whether event replication was enabled or disabled for this endpoint. The default state is
ENABLED
which means you must supply a RoleArn
. If you don't have a
RoleArn
or you don't want event replication enabled, set the state to DISABLED
.public List<EndpointEventBus> getEventBuses()
The event buses being used by the endpoint.
public void setEventBuses(Collection<EndpointEventBus> eventBuses)
The event buses being used by the endpoint.
eventBuses
- The event buses being used by the endpoint.public Endpoint withEventBuses(EndpointEventBus... eventBuses)
The event buses being used by the endpoint.
NOTE: This method appends the values to the existing list (if any). Use
setEventBuses(java.util.Collection)
or withEventBuses(java.util.Collection)
if you want to
override the existing values.
eventBuses
- The event buses being used by the endpoint.public Endpoint withEventBuses(Collection<EndpointEventBus> eventBuses)
The event buses being used by the endpoint.
eventBuses
- The event buses being used by the endpoint.public void setRoleArn(String roleArn)
The ARN of the role used by event replication for the endpoint.
roleArn
- The ARN of the role used by event replication for the endpoint.public String getRoleArn()
The ARN of the role used by event replication for the endpoint.
public Endpoint withRoleArn(String roleArn)
The ARN of the role used by event replication for the endpoint.
roleArn
- The ARN of the role used by event replication for the endpoint.public void setEndpointId(String endpointId)
The URL subdomain of the endpoint. For example, if the URL for Endpoint is
https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo
.
endpointId
- The URL subdomain of the endpoint. For example, if the URL for Endpoint is
https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo
.public String getEndpointId()
The URL subdomain of the endpoint. For example, if the URL for Endpoint is
https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo
.
abcde.veo
.public Endpoint withEndpointId(String endpointId)
The URL subdomain of the endpoint. For example, if the URL for Endpoint is
https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo
.
endpointId
- The URL subdomain of the endpoint. For example, if the URL for Endpoint is
https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo
.public void setEndpointUrl(String endpointUrl)
The URL of the endpoint.
endpointUrl
- The URL of the endpoint.public String getEndpointUrl()
The URL of the endpoint.
public Endpoint withEndpointUrl(String endpointUrl)
The URL of the endpoint.
endpointUrl
- The URL of the endpoint.public void setState(String state)
The current state of the endpoint.
state
- The current state of the endpoint.EndpointState
public String getState()
The current state of the endpoint.
EndpointState
public Endpoint withState(String state)
The current state of the endpoint.
state
- The current state of the endpoint.EndpointState
public Endpoint withState(EndpointState state)
The current state of the endpoint.
state
- The current state of the endpoint.EndpointState
public void setStateReason(String stateReason)
The reason the endpoint is in its current state.
stateReason
- The reason the endpoint is in its current state.public String getStateReason()
The reason the endpoint is in its current state.
public Endpoint withStateReason(String stateReason)
The reason the endpoint is in its current state.
stateReason
- The reason the endpoint is in its current state.public void setCreationTime(Date creationTime)
The time the endpoint was created.
creationTime
- The time the endpoint was created.public Date getCreationTime()
The time the endpoint was created.
public Endpoint withCreationTime(Date creationTime)
The time the endpoint was created.
creationTime
- The time the endpoint was created.public void setLastModifiedTime(Date lastModifiedTime)
The last time the endpoint was modified.
lastModifiedTime
- The last time the endpoint was modified.public Date getLastModifiedTime()
The last time the endpoint was modified.
public Endpoint withLastModifiedTime(Date lastModifiedTime)
The last time the endpoint was modified.
lastModifiedTime
- The last time the endpoint was modified.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.