#[non_exhaustive]
pub struct GrantBuilder { /* private fields */ }
Expand description

A builder for Grant.

Implementations§

source§

impl GrantBuilder

source

pub fn grant_arn(self, input: impl Into<String>) -> Self

Amazon Resource Name (ARN) of the grant.

source

pub fn set_grant_arn(self, input: Option<String>) -> Self

Amazon Resource Name (ARN) of the grant.

source

pub fn get_grant_arn(&self) -> &Option<String>

Amazon Resource Name (ARN) of the grant.

source

pub fn grant_name(self, input: impl Into<String>) -> Self

Grant name.

source

pub fn set_grant_name(self, input: Option<String>) -> Self

Grant name.

source

pub fn get_grant_name(&self) -> &Option<String>

Grant name.

source

pub fn parent_arn(self, input: impl Into<String>) -> Self

Parent ARN.

source

pub fn set_parent_arn(self, input: Option<String>) -> Self

Parent ARN.

source

pub fn get_parent_arn(&self) -> &Option<String>

Parent ARN.

source

pub fn license_arn(self, input: impl Into<String>) -> Self

License ARN.

source

pub fn set_license_arn(self, input: Option<String>) -> Self

License ARN.

source

pub fn get_license_arn(&self) -> &Option<String>

License ARN.

source

pub fn grantee_principal_arn(self, input: impl Into<String>) -> Self

The grantee principal ARN.

source

pub fn set_grantee_principal_arn(self, input: Option<String>) -> Self

The grantee principal ARN.

source

pub fn get_grantee_principal_arn(&self) -> &Option<String>

The grantee principal ARN.

source

pub fn home_region(self, input: impl Into<String>) -> Self

Home Region of the grant.

source

pub fn set_home_region(self, input: Option<String>) -> Self

Home Region of the grant.

source

pub fn get_home_region(&self) -> &Option<String>

Home Region of the grant.

source

pub fn grant_status(self, input: GrantStatus) -> Self

Grant status.

source

pub fn set_grant_status(self, input: Option<GrantStatus>) -> Self

Grant status.

source

pub fn get_grant_status(&self) -> &Option<GrantStatus>

Grant status.

source

pub fn status_reason(self, input: impl Into<String>) -> Self

Grant status reason.

source

pub fn set_status_reason(self, input: Option<String>) -> Self

Grant status reason.

source

pub fn get_status_reason(&self) -> &Option<String>

Grant status reason.

source

pub fn version(self, input: impl Into<String>) -> Self

Grant version.

source

pub fn set_version(self, input: Option<String>) -> Self

Grant version.

source

pub fn get_version(&self) -> &Option<String>

Grant version.

source

pub fn granted_operations(self, input: AllowedOperation) -> Self

Appends an item to granted_operations.

To override the contents of this collection use set_granted_operations.

Granted operations.

source

pub fn set_granted_operations( self, input: Option<Vec<AllowedOperation>> ) -> Self

Granted operations.

source

pub fn get_granted_operations(&self) -> &Option<Vec<AllowedOperation>>

Granted operations.

source

pub fn options(self, input: Options) -> Self

The options specified for the grant.

source

pub fn set_options(self, input: Option<Options>) -> Self

The options specified for the grant.

source

pub fn get_options(&self) -> &Option<Options>

The options specified for the grant.

source

pub fn build(self) -> Grant

Consumes the builder and constructs a Grant.

Trait Implementations§

source§

impl Clone for GrantBuilder

source§

fn clone(&self) -> GrantBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GrantBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for GrantBuilder

source§

fn default() -> GrantBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<GrantBuilder> for GrantBuilder

source§

fn eq(&self, other: &GrantBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for GrantBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more