package org.ovirt.engine.core.common.action;

import javax.validation.constraints.NotNull;

import org.ovirt.engine.core.compat.Guid;

public class RemoveNetworkParameters extends VdcActionParametersBase {
    private static final long serialVersionUID = -7392121807419409051L;

    @NotNull
    private Guid id;

    private boolean removeFromNetworkProvider;

    public RemoveNetworkParameters() {
    }

    public RemoveNetworkParameters(Guid id) {
        this.id = id;
    }

    public RemoveNetworkParameters(Guid id, boolean removeFromNetworkProvider) {
        this.id = id;
        this.removeFromNetworkProvider = removeFromNetworkProvider;
    }

    public Guid getId() {
        return id;
    }

    public void setId(Guid id) {
        this.id = id;
    }

    public boolean isRemoveFromNetworkProvider() {
        return removeFromNetworkProvider;
    }

    public void setRemoveFromNetworkProvider(boolean removeFromNetworkProvider) {
        this.removeFromNetworkProvider = removeFromNetworkProvider;
    }
}

@@ -1023,11 +1023,927 @@
 r;%0A    %7D
+%0A%0A    @Override%0A    public int hashCode() %7B%0A        final int prime = 31;%0A        int result = super.hashCode();%0A        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());%0A        result = prime * result + (isRemoveFromNetworkProvider() ? 1231 : 1237);%0A        return result;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if (this == obj)%0A            return true;%0A        if (!super.equals(obj))%0A            return false;%0A        if (getClass() != obj.getClass())%0A            return false;%0A        RemoveNetworkParameters other = (RemoveNetworkParameters) obj;%0A        if (getId() == null) %7B%0A            if (other.getId() != null)%0A                return false;%0A        %7D else if (!getId().equals(other.getId()))%0A            return false;%0A        if (isRemoveFromNetworkProvider() != other.isRemoveFromNetworkProvider())%0A            return false;%0A        return true;%0A    %7D
 %0A%7D%0A

Clear coverity warning