@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.ConnectionNotificationType
public String getConnectionNotificationType()
The type of notification.
ConnectionNotificationType
public ConnectionNotification withConnectionNotificationType(String connectionNotificationType)
The type of notification.
connectionNotificationType
- The type of notification.ConnectionNotificationType
public ConnectionNotification withConnectionNotificationType(ConnectionNotificationType connectionNotificationType)
The type of notification.
connectionNotificationType
- The type of notification.ConnectionNotificationType
public 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.ConnectionNotificationState
public String getConnectionNotificationState()
The state of the notification.
ConnectionNotificationState
public ConnectionNotification withConnectionNotificationState(String connectionNotificationState)
The state of the notification.
connectionNotificationState
- The state of the notification.ConnectionNotificationState
public ConnectionNotification withConnectionNotificationState(ConnectionNotificationState connectionNotificationState)
The state of the notification.
connectionNotificationState
- The state of the notification.ConnectionNotificationState
public String toString()
toString
in class Object
Object.toString()
public ConnectionNotification clone()