Struct aws_sdk_ec2::operation::modify_ipam_resource_cidr::builders::ModifyIpamResourceCidrInputBuilder
source · #[non_exhaustive]pub struct ModifyIpamResourceCidrInputBuilder { /* private fields */ }
Expand description
A builder for ModifyIpamResourceCidrInput
.
Implementations§
source§impl ModifyIpamResourceCidrInputBuilder
impl ModifyIpamResourceCidrInputBuilder
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
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 you want to modify.
This field is required.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 you want to modify.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The ID of the resource you want to modify.
sourcepub fn resource_cidr(self, input: impl Into<String>) -> Self
pub fn resource_cidr(self, input: impl Into<String>) -> Self
The CIDR of the resource you want to modify.
This field is required.sourcepub fn set_resource_cidr(self, input: Option<String>) -> Self
pub fn set_resource_cidr(self, input: Option<String>) -> Self
The CIDR of the resource you want to modify.
sourcepub fn get_resource_cidr(&self) -> &Option<String>
pub fn get_resource_cidr(&self) -> &Option<String>
The CIDR of the resource you want to modify.
sourcepub fn resource_region(self, input: impl Into<String>) -> Self
pub fn resource_region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region of the resource you want to modify.
This field is required.sourcepub fn set_resource_region(self, input: Option<String>) -> Self
pub fn set_resource_region(self, input: Option<String>) -> Self
The Amazon Web Services Region of the resource you want to modify.
sourcepub fn get_resource_region(&self) -> &Option<String>
pub fn get_resource_region(&self) -> &Option<String>
The Amazon Web Services Region of the resource you want to modify.
sourcepub fn current_ipam_scope_id(self, input: impl Into<String>) -> Self
pub fn current_ipam_scope_id(self, input: impl Into<String>) -> Self
The ID of the current scope that the resource CIDR is in.
This field is required.sourcepub fn set_current_ipam_scope_id(self, input: Option<String>) -> Self
pub fn set_current_ipam_scope_id(self, input: Option<String>) -> Self
The ID of the current scope that the resource CIDR is in.
sourcepub fn get_current_ipam_scope_id(&self) -> &Option<String>
pub fn get_current_ipam_scope_id(&self) -> &Option<String>
The ID of the current scope that the resource CIDR is in.
sourcepub fn destination_ipam_scope_id(self, input: impl Into<String>) -> Self
pub fn destination_ipam_scope_id(self, input: impl Into<String>) -> Self
The ID of the scope you want to transfer the resource CIDR to.
sourcepub fn set_destination_ipam_scope_id(self, input: Option<String>) -> Self
pub fn set_destination_ipam_scope_id(self, input: Option<String>) -> Self
The ID of the scope you want to transfer the resource CIDR to.
sourcepub fn get_destination_ipam_scope_id(&self) -> &Option<String>
pub fn get_destination_ipam_scope_id(&self) -> &Option<String>
The ID of the scope you want to transfer the resource CIDR to.
sourcepub fn monitored(self, input: bool) -> Self
pub fn monitored(self, input: bool) -> Self
Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.
This field is required.sourcepub fn set_monitored(self, input: Option<bool>) -> Self
pub fn set_monitored(self, input: Option<bool>) -> Self
Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.
sourcepub fn get_monitored(&self) -> &Option<bool>
pub fn get_monitored(&self) -> &Option<bool>
Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.
sourcepub fn build(self) -> Result<ModifyIpamResourceCidrInput, BuildError>
pub fn build(self) -> Result<ModifyIpamResourceCidrInput, BuildError>
Consumes the builder and constructs a ModifyIpamResourceCidrInput
.
source§impl ModifyIpamResourceCidrInputBuilder
impl ModifyIpamResourceCidrInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifyIpamResourceCidrOutput, SdkError<ModifyIpamResourceCidrError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifyIpamResourceCidrOutput, SdkError<ModifyIpamResourceCidrError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyIpamResourceCidrInputBuilder
impl Clone for ModifyIpamResourceCidrInputBuilder
source§fn clone(&self) -> ModifyIpamResourceCidrInputBuilder
fn clone(&self) -> ModifyIpamResourceCidrInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModifyIpamResourceCidrInputBuilder
impl Default for ModifyIpamResourceCidrInputBuilder
source§fn default() -> ModifyIpamResourceCidrInputBuilder
fn default() -> ModifyIpamResourceCidrInputBuilder
source§impl PartialEq for ModifyIpamResourceCidrInputBuilder
impl PartialEq for ModifyIpamResourceCidrInputBuilder
source§fn eq(&self, other: &ModifyIpamResourceCidrInputBuilder) -> bool
fn eq(&self, other: &ModifyIpamResourceCidrInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.