Class AccountSettingsComponent.Builder
- java.lang.Object
-
- com.ibm.cloud.platform_services.iam_identity.v1.model.AccountSettingsComponent.Builder
-
- Enclosing class:
- AccountSettingsComponent
public static class AccountSettingsComponent.Builder extends java.lang.ObjectBuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountSettingsComponent.BuilderaddUserMfa(AccountSettingsUserMFA userMfa)Adds a new element to userMfa.AccountSettingsComponent.BuilderallowedIpAddresses(java.lang.String allowedIpAddresses)Set the allowedIpAddresses.AccountSettingsComponentbuild()Builds a AccountSettingsComponent.AccountSettingsComponent.BuildermaxSessionsPerIdentity(java.lang.String maxSessionsPerIdentity)Set the maxSessionsPerIdentity.AccountSettingsComponent.Buildermfa(java.lang.String mfa)Set the mfa.AccountSettingsComponent.BuilderrestrictCreatePlatformApikey(java.lang.String restrictCreatePlatformApikey)Set the restrictCreatePlatformApikey.AccountSettingsComponent.BuilderrestrictCreateServiceId(java.lang.String restrictCreateServiceId)Set the restrictCreateServiceId.AccountSettingsComponent.BuildersessionExpirationInSeconds(java.lang.String sessionExpirationInSeconds)Set the sessionExpirationInSeconds.AccountSettingsComponent.BuildersessionInvalidationInSeconds(java.lang.String sessionInvalidationInSeconds)Set the sessionInvalidationInSeconds.AccountSettingsComponent.BuildersystemAccessTokenExpirationInSeconds(java.lang.String systemAccessTokenExpirationInSeconds)Set the systemAccessTokenExpirationInSeconds.AccountSettingsComponent.BuildersystemRefreshTokenExpirationInSeconds(java.lang.String systemRefreshTokenExpirationInSeconds)Set the systemRefreshTokenExpirationInSeconds.AccountSettingsComponent.BuilderuserMfa(java.util.List<AccountSettingsUserMFA> userMfa)Set the userMfa.
-
-
-
Method Detail
-
build
public AccountSettingsComponent build()
Builds a AccountSettingsComponent.- Returns:
- the new AccountSettingsComponent instance
-
addUserMfa
public AccountSettingsComponent.Builder addUserMfa(AccountSettingsUserMFA userMfa)
Adds a new element to userMfa.- Parameters:
userMfa- the new element to be added- Returns:
- the AccountSettingsComponent builder
-
restrictCreateServiceId
public AccountSettingsComponent.Builder restrictCreateServiceId(java.lang.String restrictCreateServiceId)
Set the restrictCreateServiceId.- Parameters:
restrictCreateServiceId- the restrictCreateServiceId- Returns:
- the AccountSettingsComponent builder
-
restrictCreatePlatformApikey
public AccountSettingsComponent.Builder restrictCreatePlatformApikey(java.lang.String restrictCreatePlatformApikey)
Set the restrictCreatePlatformApikey.- Parameters:
restrictCreatePlatformApikey- the restrictCreatePlatformApikey- Returns:
- the AccountSettingsComponent builder
-
allowedIpAddresses
public AccountSettingsComponent.Builder allowedIpAddresses(java.lang.String allowedIpAddresses)
Set the allowedIpAddresses.- Parameters:
allowedIpAddresses- the allowedIpAddresses- Returns:
- the AccountSettingsComponent builder
-
mfa
public AccountSettingsComponent.Builder mfa(java.lang.String mfa)
Set the mfa.- Parameters:
mfa- the mfa- Returns:
- the AccountSettingsComponent builder
-
userMfa
public AccountSettingsComponent.Builder userMfa(java.util.List<AccountSettingsUserMFA> userMfa)
Set the userMfa. Existing userMfa will be replaced.- Parameters:
userMfa- the userMfa- Returns:
- the AccountSettingsComponent builder
-
sessionExpirationInSeconds
public AccountSettingsComponent.Builder sessionExpirationInSeconds(java.lang.String sessionExpirationInSeconds)
Set the sessionExpirationInSeconds.- Parameters:
sessionExpirationInSeconds- the sessionExpirationInSeconds- Returns:
- the AccountSettingsComponent builder
-
sessionInvalidationInSeconds
public AccountSettingsComponent.Builder sessionInvalidationInSeconds(java.lang.String sessionInvalidationInSeconds)
Set the sessionInvalidationInSeconds.- Parameters:
sessionInvalidationInSeconds- the sessionInvalidationInSeconds- Returns:
- the AccountSettingsComponent builder
-
maxSessionsPerIdentity
public AccountSettingsComponent.Builder maxSessionsPerIdentity(java.lang.String maxSessionsPerIdentity)
Set the maxSessionsPerIdentity.- Parameters:
maxSessionsPerIdentity- the maxSessionsPerIdentity- Returns:
- the AccountSettingsComponent builder
-
systemAccessTokenExpirationInSeconds
public AccountSettingsComponent.Builder systemAccessTokenExpirationInSeconds(java.lang.String systemAccessTokenExpirationInSeconds)
Set the systemAccessTokenExpirationInSeconds.- Parameters:
systemAccessTokenExpirationInSeconds- the systemAccessTokenExpirationInSeconds- Returns:
- the AccountSettingsComponent builder
-
systemRefreshTokenExpirationInSeconds
public AccountSettingsComponent.Builder systemRefreshTokenExpirationInSeconds(java.lang.String systemRefreshTokenExpirationInSeconds)
Set the systemRefreshTokenExpirationInSeconds.- Parameters:
systemRefreshTokenExpirationInSeconds- the systemRefreshTokenExpirationInSeconds- Returns:
- the AccountSettingsComponent builder
-
-