@Generated(value="software.amazon.awssdk:codegen") public final class ConnectionNotification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ConnectionNotification.Builder,ConnectionNotification>
Describes a connection notification for a VPC endpoint or VPC endpoint service.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConnectionNotification.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ConnectionNotification.Builder |
builder() |
List<String> |
connectionEvents()
The events for the notification.
|
String |
connectionNotificationArn()
The ARN of the SNS topic for the notification.
|
String |
connectionNotificationId()
The ID of the notification.
|
ConnectionNotificationState |
connectionNotificationState()
The state of the notification.
|
String |
connectionNotificationStateAsString()
The state of the notification.
|
ConnectionNotificationType |
connectionNotificationType()
The type of notification.
|
String |
connectionNotificationTypeAsString()
The type of notification.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasConnectionEvents()
For responses, this returns true if the service returned a value for the ConnectionEvents property.
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ConnectionNotification.Builder> |
serializableBuilderClass() |
String |
serviceId()
The ID of the endpoint service.
|
ConnectionNotification.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
vpcEndpointId()
The ID of the VPC endpoint.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String connectionNotificationId()
The ID of the notification.
public final String serviceId()
The ID of the endpoint service.
public final String vpcEndpointId()
The ID of the VPC endpoint.
public final ConnectionNotificationType connectionNotificationType()
The type of notification.
If the service returns an enum value that is not available in the current SDK version,
connectionNotificationType will return ConnectionNotificationType.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from connectionNotificationTypeAsString().
ConnectionNotificationTypepublic final String connectionNotificationTypeAsString()
The type of notification.
If the service returns an enum value that is not available in the current SDK version,
connectionNotificationType will return ConnectionNotificationType.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from connectionNotificationTypeAsString().
ConnectionNotificationTypepublic final String connectionNotificationArn()
The ARN of the SNS topic for the notification.
public final boolean hasConnectionEvents()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> connectionEvents()
The events for the notification. Valid values are Accept, Connect, Delete,
and Reject.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasConnectionEvents() method.
Accept, Connect,
Delete, and Reject.public final ConnectionNotificationState connectionNotificationState()
The state of the notification.
If the service returns an enum value that is not available in the current SDK version,
connectionNotificationState will return ConnectionNotificationState.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from connectionNotificationStateAsString().
ConnectionNotificationStatepublic final String connectionNotificationStateAsString()
The state of the notification.
If the service returns an enum value that is not available in the current SDK version,
connectionNotificationState will return ConnectionNotificationState.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from connectionNotificationStateAsString().
ConnectionNotificationStatepublic ConnectionNotification.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ConnectionNotification.Builder,ConnectionNotification>public static ConnectionNotification.Builder builder()
public static Class<? extends ConnectionNotification.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.