@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof StructuredMessage == false)
            return false;
        StructuredMessage other = (StructuredMessage) obj;
        if (other.getPrimitiveMessageDefinition() == null ^ this.getPrimitiveMessageDefinition() == null)
            return false;
        if (other.getPrimitiveMessageDefinition() != null && other.getPrimitiveMessageDefinition().equals(this.getPrimitiveMessageDefinition()) == false)
            return false;
        if (other.getStructuredMessageListDefinition() == null ^ this.getStructuredMessageListDefinition() == null)
            return false;
        if (other.getStructuredMessageListDefinition() != null
                && other.getStructuredMessageListDefinition().equals(this.getStructuredMessageListDefinition()) == false)
            return false;
        if (other.getStructuredMessageDefinition() == null ^ this.getStructuredMessageDefinition() == null)
            return false;
        if (other.getStructuredMessageDefinition() != null && other.getStructuredMessageDefinition().equals(this.getStructuredMessageDefinition()) == false)
            return false;
        return true;
    }
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-iotfleetwise/src/main/java/com/amazonaws/services/iotfleetwise/model/StructuredMessage.java