All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ksc.epc.model.DeleteKeyRequest Maven / Gradle / Ivy

package com.ksc.epc.model;

import com.ksc.KscWebServiceRequest;
import com.ksc.Request;
import com.ksc.model.DryRunSupportedRequest;
import com.ksc.epc.model.transform.DeleteKeyRequestMarshaller;
import lombok.Data;

import java.io.Serializable;

/**
 * 

* Contains the parameters for DeleteKey. *

*/ @Data public class DeleteKeyRequest extends KscWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest { /** * 密钥ID */ private String keyId; @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; DeleteKeyRequest that = (DeleteKeyRequest) o; if (keyId != null ? !keyId.equals(that.keyId) : that.keyId != null) return false; return true; } @Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (keyId != null ? keyId.hashCode() : 0); return result; } @Override public Request getDryRunRequest() { Request request = new DeleteKeyRequestMarshaller() .marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; } @Override public DeleteKeyRequest clone() { return (DeleteKeyRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy