com.amazonaws.services.sqs.model
Class GetQueueUrlRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.sqs.model.GetQueueUrlRequest
All Implemented Interfaces:
java.io.Serializable

public class GetQueueUrlRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the GetQueueUrl operation.

Returns the URL of an existing queue. This action provides a simple way to retrieve the URL of an Amazon SQS queue.

To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId parameter to specify the account ID of the queue's owner. The queue's owner must grant you permission to access the queue. For more information about shared queue access, see AddPermission or go to Shared Queues in the Amazon SQS Developer Guide .

See Also:
AmazonSQS.getQueueUrl(GetQueueUrlRequest), Serialized Form

Constructor Summary
GetQueueUrlRequest()
          Default constructor for a new GetQueueUrlRequest object.
GetQueueUrlRequest(java.lang.String queueName)
          Constructs a new GetQueueUrlRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getQueueName()
          The name of the queue whose URL must be fetched.
 java.lang.String getQueueOwnerAWSAccountId()
          The AWS account ID of the account that created the queue.
 int hashCode()
           
 void setQueueName(java.lang.String queueName)
          The name of the queue whose URL must be fetched.
 void setQueueOwnerAWSAccountId(java.lang.String queueOwnerAWSAccountId)
          The AWS account ID of the account that created the queue.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 GetQueueUrlRequest withQueueName(java.lang.String queueName)
          The name of the queue whose URL must be fetched.
 GetQueueUrlRequest withQueueOwnerAWSAccountId(java.lang.String queueOwnerAWSAccountId)
          The AWS account ID of the account that created the queue.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetQueueUrlRequest

public GetQueueUrlRequest()
Default constructor for a new GetQueueUrlRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


GetQueueUrlRequest

public GetQueueUrlRequest(java.lang.String queueName)
Constructs a new GetQueueUrlRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
queueName - The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.
Method Detail

getQueueName

public java.lang.String getQueueName()
The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.

Returns:
The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.

setQueueName

public void setQueueName(java.lang.String queueName)
The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.

Parameters:
queueName - The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.

withQueueName

public GetQueueUrlRequest withQueueName(java.lang.String queueName)
The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.

Returns a reference to this object so that method calls can be chained together.

Parameters:
queueName - The name of the queue whose URL must be fetched. Maximum 80 characters; alphanumeric characters, hyphens (-), and underscores (_) are allowed.
Returns:
A reference to this updated object so that method calls can be chained together.

getQueueOwnerAWSAccountId

public java.lang.String getQueueOwnerAWSAccountId()
The AWS account ID of the account that created the queue.

Returns:
The AWS account ID of the account that created the queue.

setQueueOwnerAWSAccountId

public void setQueueOwnerAWSAccountId(java.lang.String queueOwnerAWSAccountId)
The AWS account ID of the account that created the queue.

Parameters:
queueOwnerAWSAccountId - The AWS account ID of the account that created the queue.

withQueueOwnerAWSAccountId

public GetQueueUrlRequest withQueueOwnerAWSAccountId(java.lang.String queueOwnerAWSAccountId)
The AWS account ID of the account that created the queue.

Returns a reference to this object so that method calls can be chained together.

Parameters:
queueOwnerAWSAccountId - The AWS account ID of the account that created the queue.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.