1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/mq/MQ_EXPORTS.h> 8 #include <aws/mq/MQRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace MQ 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_MQ_API DescribeUserRequest : public MQRequest 22 { 23 public: 24 DescribeUserRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "DescribeUser"; } 31 32 Aws::String SerializePayload() const override; 33 34 35 /** 36 * <p>The unique ID that Amazon MQ generates for the broker.</p> 37 */ GetBrokerId()38 inline const Aws::String& GetBrokerId() const{ return m_brokerId; } 39 40 /** 41 * <p>The unique ID that Amazon MQ generates for the broker.</p> 42 */ BrokerIdHasBeenSet()43 inline bool BrokerIdHasBeenSet() const { return m_brokerIdHasBeenSet; } 44 45 /** 46 * <p>The unique ID that Amazon MQ generates for the broker.</p> 47 */ SetBrokerId(const Aws::String & value)48 inline void SetBrokerId(const Aws::String& value) { m_brokerIdHasBeenSet = true; m_brokerId = value; } 49 50 /** 51 * <p>The unique ID that Amazon MQ generates for the broker.</p> 52 */ SetBrokerId(Aws::String && value)53 inline void SetBrokerId(Aws::String&& value) { m_brokerIdHasBeenSet = true; m_brokerId = std::move(value); } 54 55 /** 56 * <p>The unique ID that Amazon MQ generates for the broker.</p> 57 */ SetBrokerId(const char * value)58 inline void SetBrokerId(const char* value) { m_brokerIdHasBeenSet = true; m_brokerId.assign(value); } 59 60 /** 61 * <p>The unique ID that Amazon MQ generates for the broker.</p> 62 */ WithBrokerId(const Aws::String & value)63 inline DescribeUserRequest& WithBrokerId(const Aws::String& value) { SetBrokerId(value); return *this;} 64 65 /** 66 * <p>The unique ID that Amazon MQ generates for the broker.</p> 67 */ WithBrokerId(Aws::String && value)68 inline DescribeUserRequest& WithBrokerId(Aws::String&& value) { SetBrokerId(std::move(value)); return *this;} 69 70 /** 71 * <p>The unique ID that Amazon MQ generates for the broker.</p> 72 */ WithBrokerId(const char * value)73 inline DescribeUserRequest& WithBrokerId(const char* value) { SetBrokerId(value); return *this;} 74 75 76 /** 77 * <p>The username of the ActiveMQ user. This value can contain only alphanumeric 78 * characters, dashes, periods, underscores, and tildes (- . _ ~). This value must 79 * be 2-100 characters long.</p> 80 */ GetUsername()81 inline const Aws::String& GetUsername() const{ return m_username; } 82 83 /** 84 * <p>The username of the ActiveMQ user. This value can contain only alphanumeric 85 * characters, dashes, periods, underscores, and tildes (- . _ ~). This value must 86 * be 2-100 characters long.</p> 87 */ UsernameHasBeenSet()88 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } 89 90 /** 91 * <p>The username of the ActiveMQ user. This value can contain only alphanumeric 92 * characters, dashes, periods, underscores, and tildes (- . _ ~). This value must 93 * be 2-100 characters long.</p> 94 */ SetUsername(const Aws::String & value)95 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } 96 97 /** 98 * <p>The username of the ActiveMQ user. This value can contain only alphanumeric 99 * characters, dashes, periods, underscores, and tildes (- . _ ~). This value must 100 * be 2-100 characters long.</p> 101 */ SetUsername(Aws::String && value)102 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } 103 104 /** 105 * <p>The username of the ActiveMQ user. This value can contain only alphanumeric 106 * characters, dashes, periods, underscores, and tildes (- . _ ~). This value must 107 * be 2-100 characters long.</p> 108 */ SetUsername(const char * value)109 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } 110 111 /** 112 * <p>The username of the ActiveMQ user. This value can contain only alphanumeric 113 * characters, dashes, periods, underscores, and tildes (- . _ ~). This value must 114 * be 2-100 characters long.</p> 115 */ WithUsername(const Aws::String & value)116 inline DescribeUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} 117 118 /** 119 * <p>The username of the ActiveMQ user. This value can contain only alphanumeric 120 * characters, dashes, periods, underscores, and tildes (- . _ ~). This value must 121 * be 2-100 characters long.</p> 122 */ WithUsername(Aws::String && value)123 inline DescribeUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} 124 125 /** 126 * <p>The username of the ActiveMQ user. This value can contain only alphanumeric 127 * characters, dashes, periods, underscores, and tildes (- . _ ~). This value must 128 * be 2-100 characters long.</p> 129 */ WithUsername(const char * value)130 inline DescribeUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;} 131 132 private: 133 134 Aws::String m_brokerId; 135 bool m_brokerIdHasBeenSet; 136 137 Aws::String m_username; 138 bool m_usernameHasBeenSet; 139 }; 140 141 } // namespace Model 142 } // namespace MQ 143 } // namespace Aws 144