@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getHapgArn() != null)
            sb.append("HapgArn: ").append(getHapgArn()).append(",");
        if (getHapgSerial() != null)
            sb.append("HapgSerial: ").append(getHapgSerial()).append(",");
        if (getHsmsLastActionFailed() != null)
            sb.append("HsmsLastActionFailed: ").append(getHsmsLastActionFailed()).append(",");
        if (getHsmsPendingDeletion() != null)
            sb.append("HsmsPendingDeletion: ").append(getHsmsPendingDeletion()).append(",");
        if (getHsmsPendingRegistration() != null)
            sb.append("HsmsPendingRegistration: ").append(getHsmsPendingRegistration()).append(",");
        if (getLabel() != null)
            sb.append("Label: ").append(getLabel()).append(",");
        if (getLastModifiedTimestamp() != null)
            sb.append("LastModifiedTimestamp: ").append(getLastModifiedTimestamp()).append(",");
        if (getPartitionSerialList() != null)
            sb.append("PartitionSerialList: ").append(getPartitionSerialList()).append(",");
        if (getState() != null)
            sb.append("State: ").append(getState());
        sb.append("}");
        return sb.toString();
    }
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
redacted from this string using a placeholder value.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-cloudhsm/src/main/java/com/amazonaws/services/cloudhsm/model/DescribeHapgResult.java