@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getArn() != null)
            sb.append("Arn: ").append(getArn()).append(",");
        if (getId() != null)
            sb.append("Id: ").append(getId()).append(",");
        if (getInitialContactId() != null)
            sb.append("InitialContactId: ").append(getInitialContactId()).append(",");
        if (getPreviousContactId() != null)
            sb.append("PreviousContactId: ").append(getPreviousContactId()).append(",");
        if (getInitiationMethod() != null)
            sb.append("InitiationMethod: ").append(getInitiationMethod()).append(",");
        if (getName() != null)
            sb.append("Name: ").append("***Sensitive Data Redacted***").append(",");
        if (getDescription() != null)
            sb.append("Description: ").append("***Sensitive Data Redacted***").append(",");
        if (getChannel() != null)
            sb.append("Channel: ").append(getChannel()).append(",");
        if (getQueueInfo() != null)
            sb.append("QueueInfo: ").append(getQueueInfo()).append(",");
        if (getAgentInfo() != null)
            sb.append("AgentInfo: ").append(getAgentInfo()).append(",");
        if (getInitiationTimestamp() != null)
            sb.append("InitiationTimestamp: ").append(getInitiationTimestamp()).append(",");
        if (getDisconnectTimestamp() != null)
            sb.append("DisconnectTimestamp: ").append(getDisconnectTimestamp()).append(",");
        if (getLastUpdateTimestamp() != null)
            sb.append("LastUpdateTimestamp: ").append(getLastUpdateTimestamp()).append(",");
        if (getLastPausedTimestamp() != null)
            sb.append("LastPausedTimestamp: ").append(getLastPausedTimestamp()).append(",");
        if (getLastResumedTimestamp() != null)
            sb.append("LastResumedTimestamp: ").append(getLastResumedTimestamp()).append(",");
        if (getTotalPauseCount() != null)
            sb.append("TotalPauseCount: ").append(getTotalPauseCount()).append(",");
        if (getTotalPauseDurationInSeconds() != null)
            sb.append("TotalPauseDurationInSeconds: ").append(getTotalPauseDurationInSeconds()).append(",");
        if (getScheduledTimestamp() != null)
            sb.append("ScheduledTimestamp: ").append(getScheduledTimestamp()).append(",");
        if (getRelatedContactId() != null)
            sb.append("RelatedContactId: ").append(getRelatedContactId()).append(",");
        if (getWisdomInfo() != null)
            sb.append("WisdomInfo: ").append(getWisdomInfo()).append(",");
        if (getQueueTimeAdjustmentSeconds() != null)
            sb.append("QueueTimeAdjustmentSeconds: ").append(getQueueTimeAdjustmentSeconds()).append(",");
        if (getQueuePriority() != null)
            sb.append("QueuePriority: ").append(getQueuePriority()).append(",");
        if (getTags() != null)
            sb.append("Tags: ").append(getTags()).append(",");
        if (getConnectedToSystemTimestamp() != null)
            sb.append("ConnectedToSystemTimestamp: ").append(getConnectedToSystemTimestamp()).append(",");
        if (getRoutingCriteria() != null)
            sb.append("RoutingCriteria: ").append(getRoutingCriteria()).append(",");
        if (getCustomer() != null)
            sb.append("Customer: ").append(getCustomer()).append(",");
        if (getCampaign() != null)
            sb.append("Campaign: ").append(getCampaign()).append(",");
        if (getAnsweringMachineDetectionStatus() != null)
            sb.append("AnsweringMachineDetectionStatus: ").append(getAnsweringMachineDetectionStatus()).append(",");
        if (getCustomerVoiceActivity() != null)
            sb.append("CustomerVoiceActivity: ").append(getCustomerVoiceActivity()).append(",");
        if (getQualityMetrics() != null)
            sb.append("QualityMetrics: ").append(getQualityMetrics()).append(",");
        if (getDisconnectDetails() != null)
            sb.append("DisconnectDetails: ").append(getDisconnectDetails()).append(",");
        if (getSegmentAttributes() != null)
            sb.append("SegmentAttributes: ").append(getSegmentAttributes());
        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-connect/src/main/java/com/amazonaws/services/connect/model/Contact.java