POST | /v1/UpdateAgencyMulesoftQueueState | Update agency mulesoft queue state |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class UpdateAgencyMulesoftQueueState extends UpdateAgencyMulesoftQueue implements IGet
{
}
public static class UpdateAgencyMulesoftQueue
{
public QueueStateChanged StatusChanged = null;
public String DisabledReason = null;
public String GasId = null;
public QueueStateChanged getStatusChanged() { return StatusChanged; }
public UpdateAgencyMulesoftQueue setStatusChanged(QueueStateChanged value) { this.StatusChanged = value; return this; }
public String getDisabledReason() { return DisabledReason; }
public UpdateAgencyMulesoftQueue setDisabledReason(String value) { this.DisabledReason = value; return this; }
public String getGasId() { return GasId; }
public UpdateAgencyMulesoftQueue setGasId(String value) { this.GasId = value; return this; }
}
public static enum QueueStateChanged
{
Enabled(1),
Disabled(2);
private final int value;
QueueStateChanged(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class UpdateAgencyMulesoftQueueStateResponse extends AgencyMulesoftStatusResponse
{
}
public static class AgencyMulesoftStatusResponse
{
public Boolean Status = null;
public Integer MessageCount = null;
public String LastModified = null;
public Boolean isStatus() { return Status; }
public AgencyMulesoftStatusResponse setStatus(Boolean value) { this.Status = value; return this; }
public Integer getMessageCount() { return MessageCount; }
public AgencyMulesoftStatusResponse setMessageCount(Integer value) { this.MessageCount = value; return this; }
public String getLastModified() { return LastModified; }
public AgencyMulesoftStatusResponse setLastModified(String value) { this.LastModified = value; return this; }
}
}
Java UpdateAgencyMulesoftQueueState DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/UpdateAgencyMulesoftQueueState HTTP/1.1
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"StatusChanged":"Enabled","DisabledReason":"String","GasId":"String"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Status":false,"MessageCount":0,"LastModified":"String"}