#[non_exhaustive]pub struct CognitoUserPoolConfigurationBuilder { /* private fields */ }Expand description
A builder for CognitoUserPoolConfiguration.
Implementations§
source§impl CognitoUserPoolConfigurationBuilder
impl CognitoUserPoolConfigurationBuilder
sourcepub fn user_pool_arn(self, input: impl Into<String>) -> Self
pub fn user_pool_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon Cognito user pool that contains the identities to be authorized.
Example: "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"
sourcepub fn set_user_pool_arn(self, input: Option<String>) -> Self
pub fn set_user_pool_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Amazon Cognito user pool that contains the identities to be authorized.
Example: "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"
sourcepub fn get_user_pool_arn(&self) -> &Option<String>
pub fn get_user_pool_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the Amazon Cognito user pool that contains the identities to be authorized.
Example: "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"
sourcepub fn client_ids(self, input: impl Into<String>) -> Self
pub fn client_ids(self, input: impl Into<String>) -> Self
Appends an item to client_ids.
To override the contents of this collection use set_client_ids.
The unique application client IDs that are associated with the specified Amazon Cognito user pool.
Example: "ClientIds": ["&ExampleCogClientId;"]
sourcepub fn set_client_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_client_ids(self, input: Option<Vec<String>>) -> Self
The unique application client IDs that are associated with the specified Amazon Cognito user pool.
Example: "ClientIds": ["&ExampleCogClientId;"]
sourcepub fn get_client_ids(&self) -> &Option<Vec<String>>
pub fn get_client_ids(&self) -> &Option<Vec<String>>
The unique application client IDs that are associated with the specified Amazon Cognito user pool.
Example: "ClientIds": ["&ExampleCogClientId;"]
sourcepub fn build(self) -> Result<CognitoUserPoolConfiguration, BuildError>
pub fn build(self) -> Result<CognitoUserPoolConfiguration, BuildError>
Consumes the builder and constructs a CognitoUserPoolConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CognitoUserPoolConfigurationBuilder
impl Clone for CognitoUserPoolConfigurationBuilder
source§fn clone(&self) -> CognitoUserPoolConfigurationBuilder
fn clone(&self) -> CognitoUserPoolConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CognitoUserPoolConfigurationBuilder
impl Default for CognitoUserPoolConfigurationBuilder
source§fn default() -> CognitoUserPoolConfigurationBuilder
fn default() -> CognitoUserPoolConfigurationBuilder
source§impl PartialEq for CognitoUserPoolConfigurationBuilder
impl PartialEq for CognitoUserPoolConfigurationBuilder
source§fn eq(&self, other: &CognitoUserPoolConfigurationBuilder) -> bool
fn eq(&self, other: &CognitoUserPoolConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.