Class SmtpCredentialSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • userId

        public SmtpCredentialSummary.Builder userId​(String userId)
        The OCID of the user the SMTP credential belongs to.
        Parameters:
        userId - the value to set
        Returns:
        this builder
      • description

        public SmtpCredentialSummary.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
      • timeCreated

        public SmtpCredentialSummary.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
      • timeExpires

        public SmtpCredentialSummary.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
      • lifecycleState

        public SmtpCredentialSummary.Builder lifecycleState​(SmtpCredentialSummary.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
      • inactiveStatus

        public SmtpCredentialSummary.Builder inactiveStatus​(Long inactiveStatus)
        The detailed status of INACTIVE lifecycleState.
        Parameters:
        inactiveStatus - the value to set
        Returns:
        this builder