Struct aws_sdk_sso::operation::get_role_credentials::builders::GetRoleCredentialsInputBuilder
source · #[non_exhaustive]pub struct GetRoleCredentialsInputBuilder { /* private fields */ }
Expand description
A builder for GetRoleCredentialsInput
.
Implementations§
source§impl GetRoleCredentialsInputBuilder
impl GetRoleCredentialsInputBuilder
sourcepub fn role_name(self, input: impl Into<String>) -> Self
pub fn role_name(self, input: impl Into<String>) -> Self
The friendly name of the role that is assigned to the user.
This field is required.sourcepub fn set_role_name(self, input: Option<String>) -> Self
pub fn set_role_name(self, input: Option<String>) -> Self
The friendly name of the role that is assigned to the user.
sourcepub fn get_role_name(&self) -> &Option<String>
pub fn get_role_name(&self) -> &Option<String>
The friendly name of the role that is assigned to the user.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The identifier for the AWS account that is assigned to the user.
This field is required.sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The identifier for the AWS account that is assigned to the user.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The identifier for the AWS account that is assigned to the user.
sourcepub fn access_token(self, input: impl Into<String>) -> Self
pub fn access_token(self, input: impl Into<String>) -> Self
The token issued by the CreateToken
API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
sourcepub fn set_access_token(self, input: Option<String>) -> Self
pub fn set_access_token(self, input: Option<String>) -> Self
The token issued by the CreateToken
API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
sourcepub fn get_access_token(&self) -> &Option<String>
pub fn get_access_token(&self) -> &Option<String>
The token issued by the CreateToken
API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
sourcepub fn build(self) -> Result<GetRoleCredentialsInput, BuildError>
pub fn build(self) -> Result<GetRoleCredentialsInput, BuildError>
Consumes the builder and constructs a GetRoleCredentialsInput
.
source§impl GetRoleCredentialsInputBuilder
impl GetRoleCredentialsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetRoleCredentialsOutput, SdkError<GetRoleCredentialsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetRoleCredentialsOutput, SdkError<GetRoleCredentialsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetRoleCredentialsInputBuilder
impl Clone for GetRoleCredentialsInputBuilder
source§fn clone(&self) -> GetRoleCredentialsInputBuilder
fn clone(&self) -> GetRoleCredentialsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GetRoleCredentialsInputBuilder
impl Default for GetRoleCredentialsInputBuilder
source§fn default() -> GetRoleCredentialsInputBuilder
fn default() -> GetRoleCredentialsInputBuilder
source§impl PartialEq for GetRoleCredentialsInputBuilder
impl PartialEq for GetRoleCredentialsInputBuilder
source§fn eq(&self, other: &GetRoleCredentialsInputBuilder) -> bool
fn eq(&self, other: &GetRoleCredentialsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.