Class ConnectionNotification
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.ConnectionNotification
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ConnectionNotification.Builder,ConnectionNotification>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConnectionNotification.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectionNotification.Builderbuilder()List<String>connectionEvents()The events for the notification.StringconnectionNotificationArn()The ARN of the SNS topic for the notification.StringconnectionNotificationId()The ID of the notification.ConnectionNotificationStateconnectionNotificationState()The state of the notification.StringconnectionNotificationStateAsString()The state of the notification.ConnectionNotificationTypeconnectionNotificationType()The type of notification.StringconnectionNotificationTypeAsString()The type of notification.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasConnectionEvents()For responses, this returns true if the service returned a value for the ConnectionEvents property.inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ConnectionNotification.Builder>serializableBuilderClass()StringserviceId()The ID of the endpoint service.ConnectionNotification.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvpcEndpointId()The ID of the VPC endpoint.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
connectionNotificationId
public final String connectionNotificationId()
The ID of the notification.
- Returns:
- The ID of the notification.
-
serviceId
public final String serviceId()
The ID of the endpoint service.
- Returns:
- The ID of the endpoint service.
-
vpcEndpointId
public final String vpcEndpointId()
The ID of the VPC endpoint.
- Returns:
- The ID of the VPC endpoint.
-
connectionNotificationType
public final ConnectionNotificationType connectionNotificationType()
The type of notification.
If the service returns an enum value that is not available in the current SDK version,
connectionNotificationTypewill returnConnectionNotificationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconnectionNotificationTypeAsString().- Returns:
- The type of notification.
- See Also:
ConnectionNotificationType
-
connectionNotificationTypeAsString
public final String connectionNotificationTypeAsString()
The type of notification.
If the service returns an enum value that is not available in the current SDK version,
connectionNotificationTypewill returnConnectionNotificationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconnectionNotificationTypeAsString().- Returns:
- The type of notification.
- See Also:
ConnectionNotificationType
-
connectionNotificationArn
public final String connectionNotificationArn()
The ARN of the SNS topic for the notification.
- Returns:
- The ARN of the SNS topic for the notification.
-
hasConnectionEvents
public final boolean hasConnectionEvents()
For responses, this returns true if the service returned a value for the ConnectionEvents property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
connectionEvents
public final List<String> connectionEvents()
The events for the notification. Valid values are
Accept,Connect,Delete, andReject.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.- Returns:
- The events for the notification. Valid values are
Accept,Connect,Delete, andReject.
-
connectionNotificationState
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,
connectionNotificationStatewill returnConnectionNotificationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconnectionNotificationStateAsString().- Returns:
- The state of the notification.
- See Also:
ConnectionNotificationState
-
connectionNotificationStateAsString
public final String connectionNotificationStateAsString()
The state of the notification.
If the service returns an enum value that is not available in the current SDK version,
connectionNotificationStatewill returnConnectionNotificationState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconnectionNotificationStateAsString().- Returns:
- The state of the notification.
- See Also:
ConnectionNotificationState
-
toBuilder
public ConnectionNotification.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ConnectionNotification.Builder,ConnectionNotification>
-
builder
public static ConnectionNotification.Builder builder()
-
serializableBuilderClass
public static Class<? extends ConnectionNotification.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-