/** * Constructs a new GetQueueAttributesRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param queueUrl * The URL of the Amazon SQS queue whose attribute information is retrieved.</p> * <p> * Queue URLs and names are case-sensitive. */ public GetQueueAttributesRequest(String queueUrl) { setQueueUrl(queueUrl); }
/** * <p> * The URL of the Amazon SQS queue whose attribute information is retrieved. * </p> * <p> * Queue URLs and names are case-sensitive. * </p> * * @param queueUrl * The URL of the Amazon SQS queue whose attribute information is retrieved.</p> * <p> * Queue URLs and names are case-sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public GetQueueAttributesRequest withQueueUrl(String queueUrl) { setQueueUrl(queueUrl); return this; }
setQueueUrl(queueUrl); setAttributeNames(attributeNames);
/** * Constructs a new GetQueueAttributesRequest object. Callers should use the * setter or fluent setter (with...) methods to initialize any additional * object members. * * @param queueUrl <p> * The URL of the Amazon SQS queue to take action on. * </p> * <p> * Queue URLs are case-sensitive. * </p> */ public GetQueueAttributesRequest(String queueUrl) { setQueueUrl(queueUrl); }
setQueueUrl(queueUrl); setAttributeNames(attributeNames);
throws AmazonServiceException, AmazonClientException { GetQueueAttributesRequest getQueueAttributesRequest = new GetQueueAttributesRequest(); getQueueAttributesRequest.setQueueUrl(queueUrl); getQueueAttributesRequest.setAttributeNames(attributeNames); return getQueueAttributes(getQueueAttributesRequest);
/** * Constructs a new GetQueueAttributesRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param queueUrl * The URL of the Amazon SQS queue whose attribute information is retrieved.</p> * <p> * Queue URLs and names are case-sensitive. */ public GetQueueAttributesRequest(String queueUrl) { setQueueUrl(queueUrl); }
/** * Constructs a new GetQueueAttributesRequest object. Callers should use the * setter or fluent setter (with...) methods to initialize any additional * object members. * * @param queueUrl <p> * The URL of the Amazon SQS queue to take action on. * </p> * <p> * Queue URLs are case-sensitive. * </p> */ public GetQueueAttributesRequest(String queueUrl) { setQueueUrl(queueUrl); }
/** * <p> * The URL of the Amazon SQS queue whose attribute information is retrieved. * </p> * <p> * Queue URLs and names are case-sensitive. * </p> * * @param queueUrl * The URL of the Amazon SQS queue whose attribute information is retrieved.</p> * <p> * Queue URLs and names are case-sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public GetQueueAttributesRequest withQueueUrl(String queueUrl) { setQueueUrl(queueUrl); return this; }
@Override public String get() { GetQueueAttributesRequest request = new GetQueueAttributesRequest(); request.setQueueUrl(urlSupplier.get()); request.setAttributeNames(ImmutableList.of("QueueArn")); GetQueueAttributesResult result = client.getQueueAttributes(request); return result.getAttributes().get("QueueArn"); } }
setQueueUrl(queueUrl); setAttributeNames(attributeNames);
setQueueUrl(queueUrl); setAttributeNames(attributeNames);
throws AmazonServiceException, AmazonClientException { GetQueueAttributesRequest getQueueAttributesRequest = new GetQueueAttributesRequest(); getQueueAttributesRequest.setQueueUrl(queueUrl); getQueueAttributesRequest.setAttributeNames(attributeNames); return getQueueAttributes(getQueueAttributesRequest);