@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConnectionNotification extends Object implements Serializable, Cloneable
Describes a connection notification for a VPC endpoint or VPC endpoint service.
| Constructor and Description |
|---|
ConnectionNotification() |
| Modifier and Type | Method and Description |
|---|---|
ConnectionNotification |
clone() |
boolean |
equals(Object obj) |
List<String> |
getConnectionEvents()
The events for the notification.
|
String |
getConnectionNotificationArn()
The ARN of the SNS topic for the notification.
|
String |
getConnectionNotificationId()
The ID of the notification.
|
String |
getConnectionNotificationState()
The state of the notification.
|
String |
getConnectionNotificationType()
The type of notification.
|
String |
getServiceId()
The ID of the endpoint service.
|
String |
getVpcEndpointId()
The ID of the VPC endpoint.
|
int |
hashCode() |
void |
setConnectionEvents(Collection<String> connectionEvents)
The events for the notification.
|
void |
setConnectionNotificationArn(String connectionNotificationArn)
The ARN of the SNS topic for the notification.
|
void |
setConnectionNotificationId(String connectionNotificationId)
The ID of the notification.
|
void |
setConnectionNotificationState(String connectionNotificationState)
The state of the notification.
|
void |
setConnectionNotificationType(String connectionNotificationType)
The type of notification.
|
void |
setServiceId(String serviceId)
The ID of the endpoint service.
|
void |
setVpcEndpointId(String vpcEndpointId)
The ID of the VPC endpoint.
|
String |
toString()
Returns a string representation of this object.
|
ConnectionNotification |
withConnectionEvents(Collection<String> connectionEvents)
The events for the notification.
|
ConnectionNotification |
withConnectionEvents(String... connectionEvents)
The events for the notification.
|
ConnectionNotification |
withConnectionNotificationArn(String connectionNotificationArn)
The ARN of the SNS topic for the notification.
|
ConnectionNotification |
withConnectionNotificationId(String connectionNotificationId)
The ID of the notification.
|
ConnectionNotification |
withConnectionNotificationState(ConnectionNotificationState connectionNotificationState)
The state of the notification.
|
ConnectionNotification |
withConnectionNotificationState(String connectionNotificationState)
The state of the notification.
|
ConnectionNotification |
withConnectionNotificationType(ConnectionNotificationType connectionNotificationType)
The type of notification.
|
ConnectionNotification |
withConnectionNotificationType(String connectionNotificationType)
The type of notification.
|
ConnectionNotification |
withServiceId(String serviceId)
The ID of the endpoint service.
|
ConnectionNotification |
withVpcEndpointId(String vpcEndpointId)
The ID of the VPC endpoint.
|
public void setConnectionNotificationId(String connectionNotificationId)
The ID of the notification.
connectionNotificationId - The ID of the notification.public String getConnectionNotificationId()
The ID of the notification.
public ConnectionNotification withConnectionNotificationId(String connectionNotificationId)
The ID of the notification.
connectionNotificationId - The ID of the notification.public void setServiceId(String serviceId)
The ID of the endpoint service.
serviceId - The ID of the endpoint service.public String getServiceId()
The ID of the endpoint service.
public ConnectionNotification withServiceId(String serviceId)
The ID of the endpoint service.
serviceId - The ID of the endpoint service.public void setVpcEndpointId(String vpcEndpointId)
The ID of the VPC endpoint.
vpcEndpointId - The ID of the VPC endpoint.public String getVpcEndpointId()
The ID of the VPC endpoint.
public ConnectionNotification withVpcEndpointId(String vpcEndpointId)
The ID of the VPC endpoint.
vpcEndpointId - The ID of the VPC endpoint.public void setConnectionNotificationType(String connectionNotificationType)
The type of notification.
connectionNotificationType - The type of notification.ConnectionNotificationTypepublic String getConnectionNotificationType()
The type of notification.
ConnectionNotificationTypepublic ConnectionNotification withConnectionNotificationType(String connectionNotificationType)
The type of notification.
connectionNotificationType - The type of notification.ConnectionNotificationTypepublic ConnectionNotification withConnectionNotificationType(ConnectionNotificationType connectionNotificationType)
The type of notification.
connectionNotificationType - The type of notification.ConnectionNotificationTypepublic void setConnectionNotificationArn(String connectionNotificationArn)
The ARN of the SNS topic for the notification.
connectionNotificationArn - The ARN of the SNS topic for the notification.public String getConnectionNotificationArn()
The ARN of the SNS topic for the notification.
public ConnectionNotification withConnectionNotificationArn(String connectionNotificationArn)
The ARN of the SNS topic for the notification.
connectionNotificationArn - The ARN of the SNS topic for the notification.public List<String> getConnectionEvents()
The events for the notification. Valid values are Accept, Connect, Delete,
and Reject.
Accept, Connect,
Delete, and Reject.public void setConnectionEvents(Collection<String> connectionEvents)
The events for the notification. Valid values are Accept, Connect, Delete,
and Reject.
connectionEvents - The events for the notification. Valid values are Accept, Connect,
Delete, and Reject.public ConnectionNotification withConnectionEvents(String... connectionEvents)
The events for the notification. Valid values are Accept, Connect, Delete,
and Reject.
NOTE: This method appends the values to the existing list (if any). Use
setConnectionEvents(java.util.Collection) or withConnectionEvents(java.util.Collection) if you
want to override the existing values.
connectionEvents - The events for the notification. Valid values are Accept, Connect,
Delete, and Reject.public ConnectionNotification withConnectionEvents(Collection<String> connectionEvents)
The events for the notification. Valid values are Accept, Connect, Delete,
and Reject.
connectionEvents - The events for the notification. Valid values are Accept, Connect,
Delete, and Reject.public void setConnectionNotificationState(String connectionNotificationState)
The state of the notification.
connectionNotificationState - The state of the notification.ConnectionNotificationStatepublic String getConnectionNotificationState()
The state of the notification.
ConnectionNotificationStatepublic ConnectionNotification withConnectionNotificationState(String connectionNotificationState)
The state of the notification.
connectionNotificationState - The state of the notification.ConnectionNotificationStatepublic ConnectionNotification withConnectionNotificationState(ConnectionNotificationState connectionNotificationState)
The state of the notification.
connectionNotificationState - The state of the notification.ConnectionNotificationStatepublic String toString()
toString in class ObjectObject.toString()public ConnectionNotification clone()