#[non_exhaustive]pub struct CreateVpnConnectionRequest {
pub parent: String,
pub vpn_connection_id: String,
pub vpn_connection: Option<VpnConnection>,
pub request_id: String,
/* private fields */
}Expand description
Creates a VPN connection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent location where this vpn connection will be created.
vpn_connection_id: StringRequired. The VPN connection identifier.
vpn_connection: Option<VpnConnection>Required. The VPN connection to create.
request_id: StringA unique identifier for this request. Restricted to 36 ASCII characters. A
random UUID is recommended. This request is only idempotent if
request_id is provided.
Implementations§
Source§impl CreateVpnConnectionRequest
impl CreateVpnConnectionRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_vpn_connection_id<T: Into<String>>(self, v: T) -> Self
pub fn set_vpn_connection_id<T: Into<String>>(self, v: T) -> Self
Sets the value of vpn_connection_id.
Sourcepub fn set_vpn_connection<T>(self, v: T) -> Selfwhere
T: Into<VpnConnection>,
pub fn set_vpn_connection<T>(self, v: T) -> Selfwhere
T: Into<VpnConnection>,
Sets the value of vpn_connection.
Sourcepub fn set_or_clear_vpn_connection<T>(self, v: Option<T>) -> Selfwhere
T: Into<VpnConnection>,
pub fn set_or_clear_vpn_connection<T>(self, v: Option<T>) -> Selfwhere
T: Into<VpnConnection>,
Sets or clears the value of vpn_connection.
Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Trait Implementations§
Source§impl Clone for CreateVpnConnectionRequest
impl Clone for CreateVpnConnectionRequest
Source§fn clone(&self) -> CreateVpnConnectionRequest
fn clone(&self) -> CreateVpnConnectionRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateVpnConnectionRequest
impl Debug for CreateVpnConnectionRequest
Source§impl Default for CreateVpnConnectionRequest
impl Default for CreateVpnConnectionRequest
Source§fn default() -> CreateVpnConnectionRequest
fn default() -> CreateVpnConnectionRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateVpnConnectionRequest
impl Message for CreateVpnConnectionRequest
impl StructuralPartialEq for CreateVpnConnectionRequest
Auto Trait Implementations§
impl Freeze for CreateVpnConnectionRequest
impl RefUnwindSafe for CreateVpnConnectionRequest
impl Send for CreateVpnConnectionRequest
impl Sync for CreateVpnConnectionRequest
impl Unpin for CreateVpnConnectionRequest
impl UnwindSafe for CreateVpnConnectionRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more