/** * Constructs a new GetQueueUrlRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param queueName * The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric * characters, hyphens (<code>-</code>), and underscores (<code>_</code>).</p> * <p> * Queue URLs and names are case-sensitive. */ public GetQueueUrlRequest(String queueName) { setQueueName(queueName); }
/** * <p> * The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric characters, * hyphens (<code>-</code>), and underscores (<code>_</code>). * </p> * <p> * Queue URLs and names are case-sensitive. * </p> * * @param queueName * The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric * characters, hyphens (<code>-</code>), and underscores (<code>_</code>).</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 GetQueueUrlRequest withQueueName(String queueName) { setQueueName(queueName); return this; }
/** * Constructs a new GetQueueUrlRequest object. Callers should use the setter * or fluent setter (with...) methods to initialize any additional object * members. * * @param queueName <p> * The name of the queue whose URL must be fetched. Maximum 80 * characters; alphanumeric characters, hyphens (-), and * underscores (_) are allowed. * </p> * <p> * Queue names are case-sensitive. * </p> */ public GetQueueUrlRequest(String queueName) { setQueueName(queueName); }
throws AmazonServiceException, AmazonClientException { GetQueueUrlRequest getQueueUrlRequest = new GetQueueUrlRequest(); getQueueUrlRequest.setQueueName(queueName); return getQueueUrl(getQueueUrlRequest);
/** * Constructs a new GetQueueUrlRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param queueName * The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric * characters, hyphens (<code>-</code>), and underscores (<code>_</code>).</p> * <p> * Queue URLs and names are case-sensitive. */ public GetQueueUrlRequest(String queueName) { setQueueName(queueName); }
/** * Constructs a new GetQueueUrlRequest object. Callers should use the setter * or fluent setter (with...) methods to initialize any additional object * members. * * @param queueName <p> * The name of the queue whose URL must be fetched. Maximum 80 * characters; alphanumeric characters, hyphens (-), and * underscores (_) are allowed. * </p> * <p> * Queue names are case-sensitive. * </p> */ public GetQueueUrlRequest(String queueName) { setQueueName(queueName); }
/** * <p> * The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric characters, * hyphens (<code>-</code>), and underscores (<code>_</code>). * </p> * <p> * Queue URLs and names are case-sensitive. * </p> * * @param queueName * The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric * characters, hyphens (<code>-</code>), and underscores (<code>_</code>).</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 GetQueueUrlRequest withQueueName(String queueName) { setQueueName(queueName); return this; }
@Override public void init() { if (sqsClient == null) { // not injected sqsClient = new AmazonSQSClient(credentialsProvider, clientConfig); } String endpoint = "sqs." + this.region + ".amazonaws.com"; sqsClient.setEndpoint(endpoint); for (String queueName : queues) { GetQueueUrlRequest request = new GetQueueUrlRequest(); request.setQueueName(queueName); queueUrls.add(sqsClient.getQueueUrl(request).getQueueUrl()); } log.info(String.format("SQSNotice initialized with the endpoint: %s, queue: %s", endpoint, queues)); }
throws AmazonServiceException, AmazonClientException { GetQueueUrlRequest getQueueUrlRequest = new GetQueueUrlRequest(); getQueueUrlRequest.setQueueName(queueName); return getQueueUrl(getQueueUrlRequest);