Struct aws_sdk_shield::operation::describe_protection::builders::DescribeProtectionInputBuilder
source · #[non_exhaustive]pub struct DescribeProtectionInputBuilder { /* private fields */ }
Expand description
A builder for DescribeProtectionInput
.
Implementations§
source§impl DescribeProtectionInputBuilder
impl DescribeProtectionInputBuilder
sourcepub fn protection_id(self, input: impl Into<String>) -> Self
pub fn protection_id(self, input: impl Into<String>) -> Self
The unique identifier (ID) for the Protection
object to describe. You must provide either the ResourceArn
of the protected resource or the ProtectionID
of the protection, but not both.
sourcepub fn set_protection_id(self, input: Option<String>) -> Self
pub fn set_protection_id(self, input: Option<String>) -> Self
The unique identifier (ID) for the Protection
object to describe. You must provide either the ResourceArn
of the protected resource or the ProtectionID
of the protection, but not both.
sourcepub fn get_protection_id(&self) -> &Option<String>
pub fn get_protection_id(&self) -> &Option<String>
The unique identifier (ID) for the Protection
object to describe. You must provide either the ResourceArn
of the protected resource or the ProtectionID
of the protection, but not both.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the ResourceArn
of the protected resource or the ProtectionID
of the protection, but not both.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the ResourceArn
of the protected resource or the ProtectionID
of the protection, but not both.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the ResourceArn
of the protected resource or the ProtectionID
of the protection, but not both.
sourcepub fn build(self) -> Result<DescribeProtectionInput, BuildError>
pub fn build(self) -> Result<DescribeProtectionInput, BuildError>
Consumes the builder and constructs a DescribeProtectionInput
.
source§impl DescribeProtectionInputBuilder
impl DescribeProtectionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DescribeProtectionOutput, SdkError<DescribeProtectionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DescribeProtectionOutput, SdkError<DescribeProtectionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DescribeProtectionInputBuilder
impl Clone for DescribeProtectionInputBuilder
source§fn clone(&self) -> DescribeProtectionInputBuilder
fn clone(&self) -> DescribeProtectionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DescribeProtectionInputBuilder
impl Default for DescribeProtectionInputBuilder
source§fn default() -> DescribeProtectionInputBuilder
fn default() -> DescribeProtectionInputBuilder
source§impl PartialEq<DescribeProtectionInputBuilder> for DescribeProtectionInputBuilder
impl PartialEq<DescribeProtectionInputBuilder> for DescribeProtectionInputBuilder
source§fn eq(&self, other: &DescribeProtectionInputBuilder) -> bool
fn eq(&self, other: &DescribeProtectionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.