#[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 ==.