Class CfnTermsProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnTermsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTermsProps>
- Enclosing interface:
CfnTermsProps
@Stability(Stable)
public static final class CfnTermsProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTermsProps>
A builder for
CfnTermsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTermsProps.getClientId()enforcement(String enforcement) Sets the value ofCfnTermsProps.getEnforcement()Sets the value ofCfnTermsProps.getLinks()links(IResolvable links) Sets the value ofCfnTermsProps.getLinks()Sets the value ofCfnTermsProps.getTermsName()termsSource(String termsSource) Sets the value ofCfnTermsProps.getTermsSource()userPoolId(String userPoolId) Sets the value ofCfnTermsProps.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enforcement
Sets the value ofCfnTermsProps.getEnforcement()- Parameters:
enforcement- This parameter is reserved for future use and currently accepts one value. This parameter is required.- Returns:
this
-
links
Sets the value ofCfnTermsProps.getLinks()- Parameters:
links- A map of URLs to languages. This parameter is required. For each localized language that will view the requestedTermsName, assign a URL. A selection ofcognito:defaultdisplays for all languages that don't have a language-specific URL.For example,
"cognito:default": "https://terms.example.com", "cognito:spanish": "https://terms.example.com/es".- Returns:
this
-
links
Sets the value ofCfnTermsProps.getLinks()- Parameters:
links- A map of URLs to languages. This parameter is required. For each localized language that will view the requestedTermsName, assign a URL. A selection ofcognito:defaultdisplays for all languages that don't have a language-specific URL.For example,
"cognito:default": "https://terms.example.com", "cognito:spanish": "https://terms.example.com/es".- Returns:
this
-
termsName
Sets the value ofCfnTermsProps.getTermsName()- Parameters:
termsName- The type and friendly name of the terms documents. This parameter is required.- Returns:
this
-
termsSource
Sets the value ofCfnTermsProps.getTermsSource()- Parameters:
termsSource- This parameter is reserved for future use and currently accepts one value. This parameter is required.- Returns:
this
-
userPoolId
Sets the value ofCfnTermsProps.getUserPoolId()- Parameters:
userPoolId- The ID of the user pool that contains the terms documents. This parameter is required.- Returns:
this
-
clientId
Sets the value ofCfnTermsProps.getClientId()- Parameters:
clientId- The ID of the app client that the terms documents are assigned to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTermsProps>- Returns:
- a new instance of
CfnTermsProps - Throws:
NullPointerException- if any required attribute was not provided
-