Package com.oracle.bmc.identity.model
Class MfaTotpDevice.Builder
- java.lang.Object
-
- com.oracle.bmc.identity.model.MfaTotpDevice.Builder
-
- Enclosing class:
- MfaTotpDevice
public static class MfaTotpDevice.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MfaTotpDevicebuild()MfaTotpDevice.Buildercopy(MfaTotpDevice model)MfaTotpDevice.Builderid(String id)The OCID of the MFA TOTP device.MfaTotpDevice.BuilderinactiveStatus(Long inactiveStatus)The detailed status of INACTIVE lifecycleState.MfaTotpDevice.BuilderisActivated(Boolean isActivated)Flag to indicate if the MFA TOTP device has been activated.MfaTotpDevice.BuilderlifecycleState(MfaTotpDevice.LifecycleState lifecycleState)The MFA TOTP device’s current state.MfaTotpDevice.Builderseed(String seed)The seed for the MFA TOTP device (Base32 encoded).MfaTotpDevice.BuildertimeCreated(Date timeCreated)Date and time the MfaTotpDevice object was created, in the format defined by RFC3339.MfaTotpDevice.BuildertimeExpires(Date timeExpires)Date and time when this MFA TOTP device will expire, in the format defined by RFC3339.MfaTotpDevice.BuilderuserId(String userId)The OCID of the user the MFA TOTP device belongs to.
-
-
-
Method Detail
-
id
public MfaTotpDevice.Builder id(String id)
The OCID of the MFA TOTP device.- Parameters:
id- the value to set- Returns:
- this builder
-
seed
public MfaTotpDevice.Builder seed(String seed)
The seed for the MFA TOTP device (Base32 encoded).- Parameters:
seed- the value to set- Returns:
- this builder
-
userId
public MfaTotpDevice.Builder userId(String userId)
The OCID of the user the MFA TOTP device belongs to.- Parameters:
userId- the value to set- Returns:
- this builder
-
timeCreated
public MfaTotpDevice.Builder timeCreated(Date timeCreated)
Date and time the MfaTotpDevice object was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeExpires
public MfaTotpDevice.Builder timeExpires(Date timeExpires)
Date and time when this MFA TOTP device will expire, in the format defined by RFC3339.Null if it never expires.
Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeExpires- the value to set- Returns:
- this builder
-
lifecycleState
public MfaTotpDevice.Builder lifecycleState(MfaTotpDevice.LifecycleState lifecycleState)
The MFA TOTP device’s current state.After creating the MFA TOTP device, make sure its lifecycleState changes from CREATING to ACTIVE before using it.
- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
inactiveStatus
public MfaTotpDevice.Builder inactiveStatus(Long inactiveStatus)
The detailed status of INACTIVE lifecycleState.Allowed values are: - 1 - SUSPENDED - 2 - DISABLED - 4 - BLOCKED - 8 - LOCKED
- Parameters:
inactiveStatus- the value to set- Returns:
- this builder
-
isActivated
public MfaTotpDevice.Builder isActivated(Boolean isActivated)
Flag to indicate if the MFA TOTP device has been activated.- Parameters:
isActivated- the value to set- Returns:
- this builder
-
build
public MfaTotpDevice build()
-
copy
public MfaTotpDevice.Builder copy(MfaTotpDevice model)
-
-