Struct aws_sdk_ec2::model::connection_notification::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ConnectionNotification
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn connection_notification_id(self, input: impl Into<String>) -> Self
pub fn connection_notification_id(self, input: impl Into<String>) -> Self
The ID of the notification.
sourcepub fn set_connection_notification_id(self, input: Option<String>) -> Self
pub fn set_connection_notification_id(self, input: Option<String>) -> Self
The ID of the notification.
sourcepub fn service_id(self, input: impl Into<String>) -> Self
pub fn service_id(self, input: impl Into<String>) -> Self
The ID of the endpoint service.
sourcepub fn set_service_id(self, input: Option<String>) -> Self
pub fn set_service_id(self, input: Option<String>) -> Self
The ID of the endpoint service.
sourcepub fn vpc_endpoint_id(self, input: impl Into<String>) -> Self
pub fn vpc_endpoint_id(self, input: impl Into<String>) -> Self
The ID of the VPC endpoint.
sourcepub fn set_vpc_endpoint_id(self, input: Option<String>) -> Self
pub fn set_vpc_endpoint_id(self, input: Option<String>) -> Self
The ID of the VPC endpoint.
sourcepub fn connection_notification_type(
self,
input: ConnectionNotificationType
) -> Self
pub fn connection_notification_type(
self,
input: ConnectionNotificationType
) -> Self
The type of notification.
sourcepub fn set_connection_notification_type(
self,
input: Option<ConnectionNotificationType>
) -> Self
pub fn set_connection_notification_type(
self,
input: Option<ConnectionNotificationType>
) -> Self
The type of notification.
sourcepub fn connection_notification_arn(self, input: impl Into<String>) -> Self
pub fn connection_notification_arn(self, input: impl Into<String>) -> Self
The ARN of the SNS topic for the notification.
sourcepub fn set_connection_notification_arn(self, input: Option<String>) -> Self
pub fn set_connection_notification_arn(self, input: Option<String>) -> Self
The ARN of the SNS topic for the notification.
sourcepub fn connection_events(self, input: impl Into<String>) -> Self
pub fn connection_events(self, input: impl Into<String>) -> Self
Appends an item to connection_events
.
To override the contents of this collection use set_connection_events
.
The events for the notification. Valid values are Accept
, Connect
, Delete
, and Reject
.
sourcepub fn set_connection_events(self, input: Option<Vec<String>>) -> Self
pub fn set_connection_events(self, input: Option<Vec<String>>) -> Self
The events for the notification. Valid values are Accept
, Connect
, Delete
, and Reject
.
sourcepub fn connection_notification_state(
self,
input: ConnectionNotificationState
) -> Self
pub fn connection_notification_state(
self,
input: ConnectionNotificationState
) -> Self
The state of the notification.
sourcepub fn set_connection_notification_state(
self,
input: Option<ConnectionNotificationState>
) -> Self
pub fn set_connection_notification_state(
self,
input: Option<ConnectionNotificationState>
) -> Self
The state of the notification.
sourcepub fn build(self) -> ConnectionNotification
pub fn build(self) -> ConnectionNotification
Consumes the builder and constructs a ConnectionNotification
.