Struct aws_sdk_ec2::model::target_network::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for TargetNetwork
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn association_id(self, input: impl Into<String>) -> Self
pub fn association_id(self, input: impl Into<String>) -> Self
The ID of the association.
sourcepub fn set_association_id(self, input: Option<String>) -> Self
pub fn set_association_id(self, input: Option<String>) -> Self
The ID of the association.
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The ID of the VPC in which the target network (subnet) is located.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC in which the target network (subnet) is located.
sourcepub fn target_network_id(self, input: impl Into<String>) -> Self
pub fn target_network_id(self, input: impl Into<String>) -> Self
The ID of the subnet specified as the target network.
sourcepub fn set_target_network_id(self, input: Option<String>) -> Self
pub fn set_target_network_id(self, input: Option<String>) -> Self
The ID of the subnet specified as the target network.
sourcepub fn client_vpn_endpoint_id(self, input: impl Into<String>) -> Self
pub fn client_vpn_endpoint_id(self, input: impl Into<String>) -> Self
The ID of the Client VPN endpoint with which the target network is associated.
sourcepub fn set_client_vpn_endpoint_id(self, input: Option<String>) -> Self
pub fn set_client_vpn_endpoint_id(self, input: Option<String>) -> Self
The ID of the Client VPN endpoint with which the target network is associated.
sourcepub fn status(self, input: AssociationStatus) -> Self
pub fn status(self, input: AssociationStatus) -> Self
The current state of the target network association.
sourcepub fn set_status(self, input: Option<AssociationStatus>) -> Self
pub fn set_status(self, input: Option<AssociationStatus>) -> Self
The current state of the target network association.
sourcepub fn security_groups(self, input: impl Into<String>) -> Self
pub fn security_groups(self, input: impl Into<String>) -> Self
Appends an item to security_groups
.
To override the contents of this collection use set_security_groups
.
The IDs of the security groups applied to the target network association.
sourcepub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
The IDs of the security groups applied to the target network association.
sourcepub fn build(self) -> TargetNetwork
pub fn build(self) -> TargetNetwork
Consumes the builder and constructs a TargetNetwork
.