/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace SQS { namespace Model { /** *

Retrieves the URL of an existing queue based on its name and, optionally, the * Amazon Web Services account ID.

See Also:

AWS * API Reference

*/ 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; ///@{ /** *

(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.

*/ 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;} ///@} ///@{ /** *

(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.

*/ 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