Struct aws_sdk_signer::types::builders::PermissionBuilder
source · #[non_exhaustive]pub struct PermissionBuilder { /* private fields */ }
Expand description
A builder for Permission
.
Implementations§
source§impl PermissionBuilder
impl PermissionBuilder
sourcepub fn action(self, input: impl Into<String>) -> Self
pub fn action(self, input: impl Into<String>) -> Self
An AWS Signer action permitted as part of cross-account permissions.
sourcepub fn set_action(self, input: Option<String>) -> Self
pub fn set_action(self, input: Option<String>) -> Self
An AWS Signer action permitted as part of cross-account permissions.
sourcepub fn get_action(&self) -> &Option<String>
pub fn get_action(&self) -> &Option<String>
An AWS Signer action permitted as part of cross-account permissions.
sourcepub fn principal(self, input: impl Into<String>) -> Self
pub fn principal(self, input: impl Into<String>) -> Self
The AWS principal that has been granted a cross-account permission.
sourcepub fn set_principal(self, input: Option<String>) -> Self
pub fn set_principal(self, input: Option<String>) -> Self
The AWS principal that has been granted a cross-account permission.
sourcepub fn get_principal(&self) -> &Option<String>
pub fn get_principal(&self) -> &Option<String>
The AWS principal that has been granted a cross-account permission.
sourcepub fn statement_id(self, input: impl Into<String>) -> Self
pub fn statement_id(self, input: impl Into<String>) -> Self
A unique identifier for a cross-account permission statement.
sourcepub fn set_statement_id(self, input: Option<String>) -> Self
pub fn set_statement_id(self, input: Option<String>) -> Self
A unique identifier for a cross-account permission statement.
sourcepub fn get_statement_id(&self) -> &Option<String>
pub fn get_statement_id(&self) -> &Option<String>
A unique identifier for a cross-account permission statement.
sourcepub fn profile_version(self, input: impl Into<String>) -> Self
pub fn profile_version(self, input: impl Into<String>) -> Self
The signing profile version that a permission applies to.
sourcepub fn set_profile_version(self, input: Option<String>) -> Self
pub fn set_profile_version(self, input: Option<String>) -> Self
The signing profile version that a permission applies to.
sourcepub fn get_profile_version(&self) -> &Option<String>
pub fn get_profile_version(&self) -> &Option<String>
The signing profile version that a permission applies to.
sourcepub fn build(self) -> Permission
pub fn build(self) -> Permission
Consumes the builder and constructs a Permission
.
Trait Implementations§
source§impl Clone for PermissionBuilder
impl Clone for PermissionBuilder
source§fn clone(&self) -> PermissionBuilder
fn clone(&self) -> PermissionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PermissionBuilder
impl Debug for PermissionBuilder
source§impl Default for PermissionBuilder
impl Default for PermissionBuilder
source§fn default() -> PermissionBuilder
fn default() -> PermissionBuilder
source§impl PartialEq for PermissionBuilder
impl PartialEq for PermissionBuilder
source§fn eq(&self, other: &PermissionBuilder) -> bool
fn eq(&self, other: &PermissionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PermissionBuilder
Auto Trait Implementations§
impl Freeze for PermissionBuilder
impl RefUnwindSafe for PermissionBuilder
impl Send for PermissionBuilder
impl Sync for PermissionBuilder
impl Unpin for PermissionBuilder
impl UnwindSafe for PermissionBuilder
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