#[non_exhaustive]pub struct NetworkResourceBuilder { /* private fields */ }
Expand description
A builder for NetworkResource
.
Implementations§
source§impl NetworkResourceBuilder
impl NetworkResourceBuilder
sourcepub fn registered_gateway_arn(self, input: impl Into<String>) -> Self
pub fn registered_gateway_arn(self, input: impl Into<String>) -> Self
The ARN of the gateway.
sourcepub fn set_registered_gateway_arn(self, input: Option<String>) -> Self
pub fn set_registered_gateway_arn(self, input: Option<String>) -> Self
The ARN of the gateway.
sourcepub fn get_registered_gateway_arn(&self) -> &Option<String>
pub fn get_registered_gateway_arn(&self) -> &Option<String>
The ARN of the gateway.
sourcepub fn core_network_id(self, input: impl Into<String>) -> Self
pub fn core_network_id(self, input: impl Into<String>) -> Self
The ID of a core network.
sourcepub fn set_core_network_id(self, input: Option<String>) -> Self
pub fn set_core_network_id(self, input: Option<String>) -> Self
The ID of a core network.
sourcepub fn get_core_network_id(&self) -> &Option<String>
pub fn get_core_network_id(&self) -> &Option<String>
The ID of a core network.
sourcepub fn aws_region(self, input: impl Into<String>) -> Self
pub fn aws_region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region.
sourcepub fn set_aws_region(self, input: Option<String>) -> Self
pub fn set_aws_region(self, input: Option<String>) -> Self
The Amazon Web Services Region.
sourcepub fn get_aws_region(&self) -> &Option<String>
pub fn get_aws_region(&self) -> &Option<String>
The Amazon Web Services Region.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The Amazon Web Services account ID.
sourcepub fn resource_type(self, input: impl Into<String>) -> Self
pub fn resource_type(self, input: impl Into<String>) -> Self
The resource type.
The following are the supported resource types for Direct Connect:
-
dxcon
-
dx-gateway
-
dx-vif
The following are the supported resource types for Network Manager:
-
connection
-
device
-
link
-
site
The following are the supported resource types for Amazon VPC:
-
customer-gateway
-
transit-gateway
-
transit-gateway-attachment
-
transit-gateway-connect-peer
-
transit-gateway-route-table
-
vpn-connection
sourcepub fn set_resource_type(self, input: Option<String>) -> Self
pub fn set_resource_type(self, input: Option<String>) -> Self
The resource type.
The following are the supported resource types for Direct Connect:
-
dxcon
-
dx-gateway
-
dx-vif
The following are the supported resource types for Network Manager:
-
connection
-
device
-
link
-
site
The following are the supported resource types for Amazon VPC:
-
customer-gateway
-
transit-gateway
-
transit-gateway-attachment
-
transit-gateway-connect-peer
-
transit-gateway-route-table
-
vpn-connection
sourcepub fn get_resource_type(&self) -> &Option<String>
pub fn get_resource_type(&self) -> &Option<String>
The resource type.
The following are the supported resource types for Direct Connect:
-
dxcon
-
dx-gateway
-
dx-vif
The following are the supported resource types for Network Manager:
-
connection
-
device
-
link
-
site
The following are the supported resource types for Amazon VPC:
-
customer-gateway
-
transit-gateway
-
transit-gateway-attachment
-
transit-gateway-connect-peer
-
transit-gateway-route-table
-
vpn-connection
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The ID of the resource.
sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The ID of the resource.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The ID of the resource.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The ARN of the resource.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The ARN of the resource.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The ARN of the resource.
sourcepub fn definition(self, input: impl Into<String>) -> Self
pub fn definition(self, input: impl Into<String>) -> Self
Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.
sourcepub fn set_definition(self, input: Option<String>) -> Self
pub fn set_definition(self, input: Option<String>) -> Self
Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.
sourcepub fn get_definition(&self) -> &Option<String>
pub fn get_definition(&self) -> &Option<String>
Information about the resource, in JSON format. Network Manager gets this information by describing the resource using its Describe API call.
sourcepub fn definition_timestamp(self, input: DateTime) -> Self
pub fn definition_timestamp(self, input: DateTime) -> Self
The time that the resource definition was retrieved.
sourcepub fn set_definition_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_definition_timestamp(self, input: Option<DateTime>) -> Self
The time that the resource definition was retrieved.
sourcepub fn get_definition_timestamp(&self) -> &Option<DateTime>
pub fn get_definition_timestamp(&self) -> &Option<DateTime>
The time that the resource definition was retrieved.
The tags.
The tags.
sourcepub fn metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to metadata
.
To override the contents of this collection use set_metadata
.
The resource metadata.
sourcepub fn set_metadata(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_metadata(self, input: Option<HashMap<String, String>>) -> Self
The resource metadata.
sourcepub fn build(self) -> NetworkResource
pub fn build(self) -> NetworkResource
Consumes the builder and constructs a NetworkResource
.
Trait Implementations§
source§impl Clone for NetworkResourceBuilder
impl Clone for NetworkResourceBuilder
source§fn clone(&self) -> NetworkResourceBuilder
fn clone(&self) -> NetworkResourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NetworkResourceBuilder
impl Debug for NetworkResourceBuilder
source§impl Default for NetworkResourceBuilder
impl Default for NetworkResourceBuilder
source§fn default() -> NetworkResourceBuilder
fn default() -> NetworkResourceBuilder
source§impl PartialEq for NetworkResourceBuilder
impl PartialEq for NetworkResourceBuilder
source§fn eq(&self, other: &NetworkResourceBuilder) -> bool
fn eq(&self, other: &NetworkResourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NetworkResourceBuilder
Auto Trait Implementations§
impl Freeze for NetworkResourceBuilder
impl RefUnwindSafe for NetworkResourceBuilder
impl Send for NetworkResourceBuilder
impl Sync for NetworkResourceBuilder
impl Unpin for NetworkResourceBuilder
impl UnwindSafe for NetworkResourceBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more