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 for DescribeProtectionInputBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for DescribeProtectionInputBuilder
Auto Trait Implementations§
impl Freeze for DescribeProtectionInputBuilder
impl RefUnwindSafe for DescribeProtectionInputBuilder
impl Send for DescribeProtectionInputBuilder
impl Sync for DescribeProtectionInputBuilder
impl Unpin for DescribeProtectionInputBuilder
impl UnwindSafe for DescribeProtectionInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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