本文整理了Java中com.amazonaws.services.sqs.model.DeleteMessageRequest.getQueueUrl()
方法的一些代码示例,展示了DeleteMessageRequest.getQueueUrl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DeleteMessageRequest.getQueueUrl()
方法的具体详情如下:
包路径:com.amazonaws.services.sqs.model.DeleteMessageRequest
类名称:DeleteMessageRequest
方法名:getQueueUrl
[英]The URL of the Amazon SQS queue from which messages are deleted.
Queue URLs and names are case-sensitive.
[中]从中删除消息的Amazon SQS队列的URL。
队列URL和名称区分大小写。
代码示例来源:origin: aws/aws-sdk-java
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getQueueUrl() == null) ? 0 : getQueueUrl().hashCode());
hashCode = prime * hashCode + ((getReceiptHandle() == null) ? 0 : getReceiptHandle().hashCode());
return hashCode;
}
代码示例来源:origin: aws/aws-sdk-java
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DeleteMessageRequest == false)
return false;
DeleteMessageRequest other = (DeleteMessageRequest) obj;
if (other.getQueueUrl() == null ^ this.getQueueUrl() == null)
return false;
if (other.getQueueUrl() != null && other.getQueueUrl().equals(this.getQueueUrl()) == false)
return false;
if (other.getReceiptHandle() == null ^ this.getReceiptHandle() == null)
return false;
if (other.getReceiptHandle() != null && other.getReceiptHandle().equals(this.getReceiptHandle()) == false)
return false;
return true;
}
代码示例来源:origin: aws/aws-sdk-java
/**
* 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()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getQueueUrl() != null)
sb.append("QueueUrl: ").append(getQueueUrl()).append(",");
if (getReceiptHandle() != null)
sb.append("ReceiptHandle: ").append(getReceiptHandle());
sb.append("}");
return sb.toString();
}
代码示例来源:origin: aws/aws-sdk-java
public DeleteMessageResult deleteMessage(DeleteMessageRequest deleteMessageRequest) throws AmazonServiceException,
AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessageSync(deleteMessageRequest);
}
代码示例来源:origin: aws/aws-sdk-java
public Future
AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, null);
}
代码示例来源:origin: aws/aws-sdk-java
public Future
AsyncHandler
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, asyncHandler);
}
代码示例来源:origin: aws/aws-sdk-java
public Request
if (deleteMessageRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
Request
request.addParameter("Action", "DeleteMessage");
request.addParameter("Version", "2012-11-05");
request.setHttpMethod(HttpMethodName.POST);
if (deleteMessageRequest.getQueueUrl() != null) {
request.addParameter("QueueUrl", StringUtils.fromString(deleteMessageRequest.getQueueUrl()));
}
if (deleteMessageRequest.getReceiptHandle() != null) {
request.addParameter("ReceiptHandle", StringUtils.fromString(deleteMessageRequest.getReceiptHandle()));
}
return request;
}
代码示例来源:origin: aws-amplify/aws-sdk-android
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getQueueUrl() == null) ? 0 : getQueueUrl().hashCode());
hashCode = prime * hashCode
+ ((getReceiptHandle() == null) ? 0 : getReceiptHandle().hashCode());
return hashCode;
}
代码示例来源:origin: aws-amplify/aws-sdk-android
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getQueueUrl() != null)
sb.append("QueueUrl: " + getQueueUrl() + ",");
if (getReceiptHandle() != null)
sb.append("ReceiptHandle: " + getReceiptHandle());
sb.append("}");
return sb.toString();
}
代码示例来源:origin: aws-amplify/aws-sdk-android
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DeleteMessageRequest == false)
return false;
DeleteMessageRequest other = (DeleteMessageRequest) obj;
if (other.getQueueUrl() == null ^ this.getQueueUrl() == null)
return false;
if (other.getQueueUrl() != null && other.getQueueUrl().equals(this.getQueueUrl()) == false)
return false;
if (other.getReceiptHandle() == null ^ this.getReceiptHandle() == null)
return false;
if (other.getReceiptHandle() != null
&& other.getReceiptHandle().equals(this.getReceiptHandle()) == false)
return false;
return true;
}
}
代码示例来源:origin: aws-amplify/aws-sdk-android
@Override
public Future
DeleteMessageRequest deleteMessageRequest)
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, null);
}
代码示例来源:origin: aws-amplify/aws-sdk-android
@Override
public Future
DeleteMessageRequest deleteMessageRequest,
AsyncHandler
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, asyncHandler);
}
代码示例来源:origin: aws-amplify/aws-sdk-android
@Override
public void deleteMessage(DeleteMessageRequest deleteMessageRequest)
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
buffer.deleteMessageSync(deleteMessageRequest);
}
代码示例来源:origin: aws-amplify/aws-sdk-android
public Request
if (deleteMessageRequest == null) {
throw new AmazonClientException(
"Invalid argument passed to marshall(DeleteMessageRequest)");
}
Request
deleteMessageRequest, "AmazonSQS");
request.addParameter("Action", "DeleteMessage");
request.addParameter("Version", "2012-11-05");
String prefix;
if (deleteMessageRequest.getQueueUrl() != null) {
prefix = "QueueUrl";
String queueUrl = deleteMessageRequest.getQueueUrl();
request.addParameter(prefix, StringUtils.fromString(queueUrl));
}
if (deleteMessageRequest.getReceiptHandle() != null) {
prefix = "ReceiptHandle";
String receiptHandle = deleteMessageRequest.getReceiptHandle();
request.addParameter(prefix, StringUtils.fromString(receiptHandle));
}
return request;
}
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-sqs
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getQueueUrl() == null) ? 0 : getQueueUrl().hashCode());
hashCode = prime * hashCode + ((getReceiptHandle() == null) ? 0 : getReceiptHandle().hashCode());
return hashCode;
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-sqs
public Future
AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, null);
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-sqs
public Future
AsyncHandler
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, asyncHandler);
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-sqs
public DeleteMessageResult deleteMessage(DeleteMessageRequest deleteMessageRequest) throws AmazonServiceException,
AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessageSync(deleteMessageRequest);
}
代码示例来源:origin: com.amazonaws/aws-android-sdk-sqs
@Override
public Future
DeleteMessageRequest deleteMessageRequest)
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, null);
}
代码示例来源:origin: com.amazonaws/aws-android-sdk-sqs
@Override
public Future
DeleteMessageRequest deleteMessageRequest,
AsyncHandler
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, asyncHandler);
}