#[non_exhaustive]pub struct IamRegistrationResponseBuilder { /* private fields */ }Expand description
A builder for IamRegistrationResponse.
Implementations§
source§impl IamRegistrationResponseBuilder
impl IamRegistrationResponseBuilder
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role to register.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role to register.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the IAM role to register.
sourcepub fn registration_status(self, input: RegistrationStatus) -> Self
pub fn registration_status(self, input: RegistrationStatus) -> Self
The status of registering your IAM resource. The status can be one of REGISTRATION_SUCCESS, REGISTRATION_PENDING, REGISTRATION_FAILURE.
sourcepub fn set_registration_status(self, input: Option<RegistrationStatus>) -> Self
pub fn set_registration_status(self, input: Option<RegistrationStatus>) -> Self
The status of registering your IAM resource. The status can be one of REGISTRATION_SUCCESS, REGISTRATION_PENDING, REGISTRATION_FAILURE.
sourcepub fn get_registration_status(&self) -> &Option<RegistrationStatus>
pub fn get_registration_status(&self) -> &Option<RegistrationStatus>
The status of registering your IAM resource. The status can be one of REGISTRATION_SUCCESS, REGISTRATION_PENDING, REGISTRATION_FAILURE.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
A message associated with a registration error.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
A message associated with a registration error.
sourcepub fn get_error_message(&self) -> &Option<String>
pub fn get_error_message(&self) -> &Option<String>
A message associated with a registration error.
sourcepub fn build(self) -> Result<IamRegistrationResponse, BuildError>
pub fn build(self) -> Result<IamRegistrationResponse, BuildError>
Consumes the builder and constructs a IamRegistrationResponse.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for IamRegistrationResponseBuilder
impl Clone for IamRegistrationResponseBuilder
source§fn clone(&self) -> IamRegistrationResponseBuilder
fn clone(&self) -> IamRegistrationResponseBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for IamRegistrationResponseBuilder
impl Default for IamRegistrationResponseBuilder
source§fn default() -> IamRegistrationResponseBuilder
fn default() -> IamRegistrationResponseBuilder
source§impl PartialEq for IamRegistrationResponseBuilder
impl PartialEq for IamRegistrationResponseBuilder
source§fn eq(&self, other: &IamRegistrationResponseBuilder) -> bool
fn eq(&self, other: &IamRegistrationResponseBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for IamRegistrationResponseBuilder
Auto Trait Implementations§
impl Freeze for IamRegistrationResponseBuilder
impl RefUnwindSafe for IamRegistrationResponseBuilder
impl Send for IamRegistrationResponseBuilder
impl Sync for IamRegistrationResponseBuilder
impl Unpin for IamRegistrationResponseBuilder
impl UnwindSafe for IamRegistrationResponseBuilder
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