dai_env / include /aws /sqs /model /GetQueueUrlRequest.h
Shenghong's picture
Add files using upload-large-folder tool
bfd87b5 verified
Raw History Blame Contribute Delete
3.97 kB
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sqs/SQS_EXPORTS.h>
#include <aws/sqs/SQSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SQS
{
namespace Model
{
/**
* <p>Retrieves the URL of an existing queue based on its name and, optionally, the
* Amazon Web Services account ID. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueUrlRequest">AWS
* API Reference</a></p>
*/
class GetQueueUrlRequest : public SQSRequest
{
public:
AWS_SQS_API GetQueueUrlRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetQueueUrl"; }
AWS_SQS_API Aws::String SerializePayload() const override;
AWS_SQS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
///@{
/**
* <p>(Required) The name of the queue for which you want to fetch the URL. The
* name can be up to 80 characters long and can include alphanumeric characters,
* hyphens (-), and underscores (_). Queue URLs and names are case-sensitive.</p>
*/
inline const Aws::String& GetQueueName() const{ return m_queueName; }
inline bool QueueNameHasBeenSet() const { return m_queueNameHasBeenSet; }
inline void SetQueueName(const Aws::String& value) { m_queueNameHasBeenSet = true; m_queueName = value; }
inline void SetQueueName(Aws::String&& value) { m_queueNameHasBeenSet = true; m_queueName = std::move(value); }
inline void SetQueueName(const char* value) { m_queueNameHasBeenSet = true; m_queueName.assign(value); }
inline GetQueueUrlRequest& WithQueueName(const Aws::String& value) { SetQueueName(value); return *this;}
inline GetQueueUrlRequest& WithQueueName(Aws::String&& value) { SetQueueName(std::move(value)); return *this;}
inline GetQueueUrlRequest& WithQueueName(const char* value) { SetQueueName(value); return *this;}
///@}
///@{
/**
* <p>(Optional) The Amazon Web Services account ID of the account that created the
* queue. This is only required when you are attempting to access a queue owned by
* another Amazon Web Services account.</p>
*/
inline const Aws::String& GetQueueOwnerAWSAccountId() const{ return m_queueOwnerAWSAccountId; }
inline bool QueueOwnerAWSAccountIdHasBeenSet() const { return m_queueOwnerAWSAccountIdHasBeenSet; }
inline void SetQueueOwnerAWSAccountId(const Aws::String& value) { m_queueOwnerAWSAccountIdHasBeenSet = true; m_queueOwnerAWSAccountId = value; }
inline void SetQueueOwnerAWSAccountId(Aws::String&& value) { m_queueOwnerAWSAccountIdHasBeenSet = true; m_queueOwnerAWSAccountId = std::move(value); }
inline void SetQueueOwnerAWSAccountId(const char* value) { m_queueOwnerAWSAccountIdHasBeenSet = true; m_queueOwnerAWSAccountId.assign(value); }
inline GetQueueUrlRequest& WithQueueOwnerAWSAccountId(const Aws::String& value) { SetQueueOwnerAWSAccountId(value); return *this;}
inline GetQueueUrlRequest& WithQueueOwnerAWSAccountId(Aws::String&& value) { SetQueueOwnerAWSAccountId(std::move(value)); return *this;}
inline GetQueueUrlRequest& WithQueueOwnerAWSAccountId(const char* value) { SetQueueOwnerAWSAccountId(value); return *this;}
///@}
private:
Aws::String m_queueName;
bool m_queueNameHasBeenSet = false;
Aws::String m_queueOwnerAWSAccountId;
bool m_queueOwnerAWSAccountIdHasBeenSet = false;
};
} // namespace Model
} // namespace SQS
} // namespace Aws