Struct aws_sdk_iot::operation::delete_policy_version::builders::DeletePolicyVersionInputBuilder
source · #[non_exhaustive]pub struct DeletePolicyVersionInputBuilder { /* private fields */ }Expand description
A builder for DeletePolicyVersionInput.
Implementations§
source§impl DeletePolicyVersionInputBuilder
impl DeletePolicyVersionInputBuilder
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The name of the policy.
This field is required.sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The name of the policy.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
The name of the policy.
sourcepub fn policy_version_id(self, input: impl Into<String>) -> Self
pub fn policy_version_id(self, input: impl Into<String>) -> Self
The policy version ID.
This field is required.sourcepub fn set_policy_version_id(self, input: Option<String>) -> Self
pub fn set_policy_version_id(self, input: Option<String>) -> Self
The policy version ID.
sourcepub fn get_policy_version_id(&self) -> &Option<String>
pub fn get_policy_version_id(&self) -> &Option<String>
The policy version ID.
sourcepub fn build(self) -> Result<DeletePolicyVersionInput, BuildError>
pub fn build(self) -> Result<DeletePolicyVersionInput, BuildError>
Consumes the builder and constructs a DeletePolicyVersionInput.
source§impl DeletePolicyVersionInputBuilder
impl DeletePolicyVersionInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<DeletePolicyVersionOutput, SdkError<DeletePolicyVersionError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<DeletePolicyVersionOutput, SdkError<DeletePolicyVersionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeletePolicyVersionInputBuilder
impl Clone for DeletePolicyVersionInputBuilder
source§fn clone(&self) -> DeletePolicyVersionInputBuilder
fn clone(&self) -> DeletePolicyVersionInputBuilder
Returns a copy 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 Default for DeletePolicyVersionInputBuilder
impl Default for DeletePolicyVersionInputBuilder
source§fn default() -> DeletePolicyVersionInputBuilder
fn default() -> DeletePolicyVersionInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DeletePolicyVersionInputBuilder
impl PartialEq for DeletePolicyVersionInputBuilder
source§fn eq(&self, other: &DeletePolicyVersionInputBuilder) -> bool
fn eq(&self, other: &DeletePolicyVersionInputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DeletePolicyVersionInputBuilder
Auto Trait Implementations§
impl Freeze for DeletePolicyVersionInputBuilder
impl RefUnwindSafe for DeletePolicyVersionInputBuilder
impl Send for DeletePolicyVersionInputBuilder
impl Sync for DeletePolicyVersionInputBuilder
impl Unpin for DeletePolicyVersionInputBuilder
impl UnwindSafe for DeletePolicyVersionInputBuilder
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
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)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.