Class MFADevice

    • Constructor Detail

      • MFADevice

        public MFADevice()
        Default constructor for MFADevice object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
      • MFADevice

        public MFADevice​(String userName,
                         String serialNumber,
                         Date enableDate)
        Constructs a new MFADevice object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
        Parameters:
        userName - The user with whom the MFA device is associated.
        serialNumber - The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
        enableDate - The date when the MFA device was enabled for the user.
    • Method Detail

      • setUserName

        public void setUserName​(String userName)

        The user with whom the MFA device is associated.

        Parameters:
        userName - The user with whom the MFA device is associated.
      • getUserName

        public String getUserName()

        The user with whom the MFA device is associated.

        Returns:
        The user with whom the MFA device is associated.
      • withUserName

        public MFADevice withUserName​(String userName)

        The user with whom the MFA device is associated.

        Parameters:
        userName - The user with whom the MFA device is associated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setSerialNumber

        public void setSerialNumber​(String serialNumber)

        The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

        Parameters:
        serialNumber - The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
      • getSerialNumber

        public String getSerialNumber()

        The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

        Returns:
        The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
      • withSerialNumber

        public MFADevice withSerialNumber​(String serialNumber)

        The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.

        Parameters:
        serialNumber - The serial number that uniquely identifies the MFA device. For virtual MFA devices, the serial number is the device ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEnableDate

        public void setEnableDate​(Date enableDate)

        The date when the MFA device was enabled for the user.

        Parameters:
        enableDate - The date when the MFA device was enabled for the user.
      • getEnableDate

        public Date getEnableDate()

        The date when the MFA device was enabled for the user.

        Returns:
        The date when the MFA device was enabled for the user.
      • withEnableDate

        public MFADevice withEnableDate​(Date enableDate)

        The date when the MFA device was enabled for the user.

        Parameters:
        enableDate - The date when the MFA device was enabled for the user.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object