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

        if (obj instanceof TrunkInterfaceAssociation == false)
            return false;
        TrunkInterfaceAssociation other = (TrunkInterfaceAssociation) obj;
        if (other.getAssociationId() == null ^ this.getAssociationId() == null)
            return false;
        if (other.getAssociationId() != null && other.getAssociationId().equals(this.getAssociationId()) == false)
            return false;
        if (other.getBranchInterfaceId() == null ^ this.getBranchInterfaceId() == null)
            return false;
        if (other.getBranchInterfaceId() != null && other.getBranchInterfaceId().equals(this.getBranchInterfaceId()) == false)
            return false;
        if (other.getTrunkInterfaceId() == null ^ this.getTrunkInterfaceId() == null)
            return false;
        if (other.getTrunkInterfaceId() != null && other.getTrunkInterfaceId().equals(this.getTrunkInterfaceId()) == false)
            return false;
        if (other.getInterfaceProtocol() == null ^ this.getInterfaceProtocol() == null)
            return false;
        if (other.getInterfaceProtocol() != null && other.getInterfaceProtocol().equals(this.getInterfaceProtocol()) == false)
            return false;
        if (other.getVlanId() == null ^ this.getVlanId() == null)
            return false;
        if (other.getVlanId() != null && other.getVlanId().equals(this.getVlanId()) == false)
            return false;
        if (other.getGreKey() == null ^ this.getGreKey() == null)
            return false;
        if (other.getGreKey() != null && other.getGreKey().equals(this.getGreKey()) == false)
            return false;
        if (other.getTags() == null ^ this.getTags() == null)
            return false;
        if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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-ec2/src/main/java/com/amazonaws/services/ec2/model/TrunkInterfaceAssociation.java