Package com.oracle.bmc.identity.model
Class SmtpCredential.Builder
- java.lang.Object
- 
- com.oracle.bmc.identity.model.SmtpCredential.Builder
 
- 
- Enclosing class:
- SmtpCredential
 
 public static class SmtpCredential.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SmtpCredentialbuild()SmtpCredential.Buildercopy(SmtpCredential model)SmtpCredential.Builderdescription(String description)The description you assign to the SMTP credential.SmtpCredential.Builderid(String id)The OCID of the SMTP credential.SmtpCredential.BuilderinactiveStatus(Long inactiveStatus)The detailed status of INACTIVE lifecycleState.SmtpCredential.BuilderlifecycleState(SmtpCredential.LifecycleState lifecycleState)The credential’s current state.SmtpCredential.Builderpassword(String password)The SMTP password.SmtpCredential.BuildertimeCreated(Date timeCreated)Date and time the SmtpCredential object was created, in the format defined by RFC3339.SmtpCredential.BuildertimeExpires(Date timeExpires)Date and time when this credential will expire, in the format defined by RFC3339.SmtpCredential.BuilderuserId(String userId)The OCID of the user the SMTP credential belongs to.SmtpCredential.Builderusername(String username)The SMTP user name.
 
- 
- 
- 
Method Detail- 
usernamepublic SmtpCredential.Builder username(String username) The SMTP user name.- Parameters:
- username- the value to set
- Returns:
- this builder
 
 - 
passwordpublic SmtpCredential.Builder password(String password) The SMTP password.- Parameters:
- password- the value to set
- Returns:
- this builder
 
 - 
idpublic SmtpCredential.Builder id(String id) The OCID of the SMTP credential.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
userIdpublic SmtpCredential.Builder userId(String userId) The OCID of the user the SMTP credential belongs to.- Parameters:
- userId- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic SmtpCredential.Builder description(String description) The description you assign to the SMTP credential.Does not have to be unique, and it’s changeable. (For tenancies that support identity domains) You can have an empty description. - Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic SmtpCredential.Builder timeCreated(Date timeCreated) Date and time the SmtpCredential 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
 
 - 
timeExpirespublic SmtpCredential.Builder timeExpires(Date timeExpires) Date and time when this credential 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
 
 - 
lifecycleStatepublic SmtpCredential.Builder lifecycleState(SmtpCredential.LifecycleState lifecycleState) The credential’s current state.After creating a SMTP credential, make sure its lifecycleState changes from CREATING to ACTIVE before using it. - Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
inactiveStatuspublic SmtpCredential.Builder inactiveStatus(Long inactiveStatus) The detailed status of INACTIVE lifecycleState.- Parameters:
- inactiveStatus- the value to set
- Returns:
- this builder
 
 - 
buildpublic SmtpCredential build() 
 - 
copypublic SmtpCredential.Builder copy(SmtpCredential model) 
 
- 
 
-