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/lexv2-models/LexModelsV2_EXPORTS.h> 8 #include <aws/lexv2-models/LexModelsV2Request.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Http 15 { 16 class URI; 17 } //namespace Http 18 namespace LexModelsV2 19 { 20 namespace Model 21 { 22 23 /** 24 */ 25 class AWS_LEXMODELSV2_API DeleteUtterancesRequest : public LexModelsV2Request 26 { 27 public: 28 DeleteUtterancesRequest(); 29 30 // Service request name is the Operation name which will send this request out, 31 // each operation should has unique request name, so that we can get operation's name from this request. 32 // Note: this is not true for response, multiple operations may have the same response name, 33 // so we can not get operation's name from response. GetServiceRequestName()34 inline virtual const char* GetServiceRequestName() const override { return "DeleteUtterances"; } 35 36 Aws::String SerializePayload() const override; 37 38 void AddQueryStringParameters(Aws::Http::URI& uri) const override; 39 40 41 /** 42 * <p>The unique identifier of the bot that contains the utterances.</p> 43 */ GetBotId()44 inline const Aws::String& GetBotId() const{ return m_botId; } 45 46 /** 47 * <p>The unique identifier of the bot that contains the utterances.</p> 48 */ BotIdHasBeenSet()49 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } 50 51 /** 52 * <p>The unique identifier of the bot that contains the utterances.</p> 53 */ SetBotId(const Aws::String & value)54 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } 55 56 /** 57 * <p>The unique identifier of the bot that contains the utterances.</p> 58 */ SetBotId(Aws::String && value)59 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } 60 61 /** 62 * <p>The unique identifier of the bot that contains the utterances.</p> 63 */ SetBotId(const char * value)64 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } 65 66 /** 67 * <p>The unique identifier of the bot that contains the utterances.</p> 68 */ WithBotId(const Aws::String & value)69 inline DeleteUtterancesRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} 70 71 /** 72 * <p>The unique identifier of the bot that contains the utterances.</p> 73 */ WithBotId(Aws::String && value)74 inline DeleteUtterancesRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} 75 76 /** 77 * <p>The unique identifier of the bot that contains the utterances.</p> 78 */ WithBotId(const char * value)79 inline DeleteUtterancesRequest& WithBotId(const char* value) { SetBotId(value); return *this;} 80 81 82 /** 83 * <p>The identifier of the language and locale where the utterances were 84 * collected. The string must match one of the supported locales. For more 85 * information, see <a 86 * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported 87 * languages</a>.</p> 88 */ GetLocaleId()89 inline const Aws::String& GetLocaleId() const{ return m_localeId; } 90 91 /** 92 * <p>The identifier of the language and locale where the utterances were 93 * collected. The string must match one of the supported locales. For more 94 * information, see <a 95 * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported 96 * languages</a>.</p> 97 */ LocaleIdHasBeenSet()98 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; } 99 100 /** 101 * <p>The identifier of the language and locale where the utterances were 102 * collected. The string must match one of the supported locales. For more 103 * information, see <a 104 * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported 105 * languages</a>.</p> 106 */ SetLocaleId(const Aws::String & value)107 inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; } 108 109 /** 110 * <p>The identifier of the language and locale where the utterances were 111 * collected. The string must match one of the supported locales. For more 112 * information, see <a 113 * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported 114 * languages</a>.</p> 115 */ SetLocaleId(Aws::String && value)116 inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); } 117 118 /** 119 * <p>The identifier of the language and locale where the utterances were 120 * collected. The string must match one of the supported locales. For more 121 * information, see <a 122 * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported 123 * languages</a>.</p> 124 */ SetLocaleId(const char * value)125 inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); } 126 127 /** 128 * <p>The identifier of the language and locale where the utterances were 129 * collected. The string must match one of the supported locales. For more 130 * information, see <a 131 * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported 132 * languages</a>.</p> 133 */ WithLocaleId(const Aws::String & value)134 inline DeleteUtterancesRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;} 135 136 /** 137 * <p>The identifier of the language and locale where the utterances were 138 * collected. The string must match one of the supported locales. For more 139 * information, see <a 140 * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported 141 * languages</a>.</p> 142 */ WithLocaleId(Aws::String && value)143 inline DeleteUtterancesRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;} 144 145 /** 146 * <p>The identifier of the language and locale where the utterances were 147 * collected. The string must match one of the supported locales. For more 148 * information, see <a 149 * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported 150 * languages</a>.</p> 151 */ WithLocaleId(const char * value)152 inline DeleteUtterancesRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;} 153 154 155 /** 156 * <p>The unique identifier of the session with the user. The ID is returned in the 157 * response from the and operations.</p> 158 */ GetSessionId()159 inline const Aws::String& GetSessionId() const{ return m_sessionId; } 160 161 /** 162 * <p>The unique identifier of the session with the user. The ID is returned in the 163 * response from the and operations.</p> 164 */ SessionIdHasBeenSet()165 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } 166 167 /** 168 * <p>The unique identifier of the session with the user. The ID is returned in the 169 * response from the and operations.</p> 170 */ SetSessionId(const Aws::String & value)171 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } 172 173 /** 174 * <p>The unique identifier of the session with the user. The ID is returned in the 175 * response from the and operations.</p> 176 */ SetSessionId(Aws::String && value)177 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } 178 179 /** 180 * <p>The unique identifier of the session with the user. The ID is returned in the 181 * response from the and operations.</p> 182 */ SetSessionId(const char * value)183 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } 184 185 /** 186 * <p>The unique identifier of the session with the user. The ID is returned in the 187 * response from the and operations.</p> 188 */ WithSessionId(const Aws::String & value)189 inline DeleteUtterancesRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} 190 191 /** 192 * <p>The unique identifier of the session with the user. The ID is returned in the 193 * response from the and operations.</p> 194 */ WithSessionId(Aws::String && value)195 inline DeleteUtterancesRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} 196 197 /** 198 * <p>The unique identifier of the session with the user. The ID is returned in the 199 * response from the and operations.</p> 200 */ WithSessionId(const char * value)201 inline DeleteUtterancesRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;} 202 203 private: 204 205 Aws::String m_botId; 206 bool m_botIdHasBeenSet; 207 208 Aws::String m_localeId; 209 bool m_localeIdHasBeenSet; 210 211 Aws::String m_sessionId; 212 bool m_sessionIdHasBeenSet; 213 }; 214 215 } // namespace Model 216 } // namespace LexModelsV2 217 } // namespace Aws 218