Struct aws_sdk_iot::operation::detach_principal_policy::builders::DetachPrincipalPolicyInputBuilder
source · #[non_exhaustive]pub struct DetachPrincipalPolicyInputBuilder { /* private fields */ }
Expand description
A builder for DetachPrincipalPolicyInput
.
Implementations§
source§impl DetachPrincipalPolicyInputBuilder
impl DetachPrincipalPolicyInputBuilder
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 to detach.
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 to detach.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
The name of the policy to detach.
sourcepub fn principal(self, input: impl Into<String>) -> Self
pub fn principal(self, input: impl Into<String>) -> Self
The principal.
Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
This field is required.sourcepub fn set_principal(self, input: Option<String>) -> Self
pub fn set_principal(self, input: Option<String>) -> Self
The principal.
Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
sourcepub fn get_principal(&self) -> &Option<String>
pub fn get_principal(&self) -> &Option<String>
The principal.
Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
sourcepub fn build(self) -> Result<DetachPrincipalPolicyInput, BuildError>
pub fn build(self) -> Result<DetachPrincipalPolicyInput, BuildError>
Consumes the builder and constructs a DetachPrincipalPolicyInput
.
source§impl DetachPrincipalPolicyInputBuilder
impl DetachPrincipalPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DetachPrincipalPolicyOutput, SdkError<DetachPrincipalPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DetachPrincipalPolicyOutput, SdkError<DetachPrincipalPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DetachPrincipalPolicyInputBuilder
impl Clone for DetachPrincipalPolicyInputBuilder
source§fn clone(&self) -> DetachPrincipalPolicyInputBuilder
fn clone(&self) -> DetachPrincipalPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DetachPrincipalPolicyInputBuilder
impl Default for DetachPrincipalPolicyInputBuilder
source§fn default() -> DetachPrincipalPolicyInputBuilder
fn default() -> DetachPrincipalPolicyInputBuilder
source§impl PartialEq for DetachPrincipalPolicyInputBuilder
impl PartialEq for DetachPrincipalPolicyInputBuilder
source§fn eq(&self, other: &DetachPrincipalPolicyInputBuilder) -> bool
fn eq(&self, other: &DetachPrincipalPolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DetachPrincipalPolicyInputBuilder
Auto Trait Implementations§
impl Freeze for DetachPrincipalPolicyInputBuilder
impl RefUnwindSafe for DetachPrincipalPolicyInputBuilder
impl Send for DetachPrincipalPolicyInputBuilder
impl Sync for DetachPrincipalPolicyInputBuilder
impl Unpin for DetachPrincipalPolicyInputBuilder
impl UnwindSafe for DetachPrincipalPolicyInputBuilder
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