io.scalecube.services.ServiceMethodDefinition Maven / Gradle / Ivy
package io.scalecube.services;
import java.util.Collections;
import java.util.Map;
public class ServiceMethodDefinition {
private String action;
private String contentType;
private Map tags;
private CommunicationMode communicationMode;
/**
* @deprecated exposed only for deserialization purpose.
*/
public ServiceMethodDefinition() {}
public ServiceMethodDefinition(String action, String contentType, CommunicationMode communicationMode) {
this(action, contentType, Collections.emptyMap(), communicationMode);
}
public ServiceMethodDefinition(String action, String contentType, Map tags,
CommunicationMode communicationMode) {
this.action = action;
this.contentType = contentType;
this.tags = tags;
this.communicationMode = communicationMode;
}
public String getAction() {
return action;
}
public ServiceMethodDefinition setAction(String action) {
this.action = action;
return this;
}
public String getContentType() {
return contentType;
}
public ServiceMethodDefinition setContentType(String contentType) {
this.contentType = contentType;
return this;
}
public Map getTags() {
return tags;
}
public ServiceMethodDefinition setTags(Map tags) {
this.tags = tags;
return this;
}
public CommunicationMode getCommunicationMode() {
return communicationMode;
}
public void setCommunicationMode(CommunicationMode communicationMode) {
this.communicationMode = communicationMode;
}
@Override
public String toString() {
return "ServiceMethodDefinition{" +
"action='" + action + '\'' +
", contentType='" + contentType + '\'' +
", tags=" + tags +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy