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/lex-models/LexModelBuildingService_EXPORTS.h>
8 #include <aws/lex-models/LexModelBuildingServiceRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace LexModelBuildingService
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_LEXMODELBUILDINGSERVICE_API GetBotChannelAssociationRequest : public LexModelBuildingServiceRequest
22   {
23   public:
24     GetBotChannelAssociationRequest();
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 "GetBotChannelAssociation"; }
31 
32     Aws::String SerializePayload() const override;
33 
34 
35     /**
36      * <p>The name of the association between the bot and the channel. The name is case
37      * sensitive. </p>
38      */
GetName()39     inline const Aws::String& GetName() const{ return m_name; }
40 
41     /**
42      * <p>The name of the association between the bot and the channel. The name is case
43      * sensitive. </p>
44      */
NameHasBeenSet()45     inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 
47     /**
48      * <p>The name of the association between the bot and the channel. The name is case
49      * sensitive. </p>
50      */
SetName(const Aws::String & value)51     inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 
53     /**
54      * <p>The name of the association between the bot and the channel. The name is case
55      * sensitive. </p>
56      */
SetName(Aws::String && value)57     inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 
59     /**
60      * <p>The name of the association between the bot and the channel. The name is case
61      * sensitive. </p>
62      */
SetName(const char * value)63     inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
65     /**
66      * <p>The name of the association between the bot and the channel. The name is case
67      * sensitive. </p>
68      */
WithName(const Aws::String & value)69     inline GetBotChannelAssociationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
71     /**
72      * <p>The name of the association between the bot and the channel. The name is case
73      * sensitive. </p>
74      */
WithName(Aws::String && value)75     inline GetBotChannelAssociationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 
77     /**
78      * <p>The name of the association between the bot and the channel. The name is case
79      * sensitive. </p>
80      */
WithName(const char * value)81     inline GetBotChannelAssociationRequest& WithName(const char* value) { SetName(value); return *this;}
82 
83 
84     /**
85      * <p>The name of the Amazon Lex bot.</p>
86      */
GetBotName()87     inline const Aws::String& GetBotName() const{ return m_botName; }
88 
89     /**
90      * <p>The name of the Amazon Lex bot.</p>
91      */
BotNameHasBeenSet()92     inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
93 
94     /**
95      * <p>The name of the Amazon Lex bot.</p>
96      */
SetBotName(const Aws::String & value)97     inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
98 
99     /**
100      * <p>The name of the Amazon Lex bot.</p>
101      */
SetBotName(Aws::String && value)102     inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
103 
104     /**
105      * <p>The name of the Amazon Lex bot.</p>
106      */
SetBotName(const char * value)107     inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
108 
109     /**
110      * <p>The name of the Amazon Lex bot.</p>
111      */
WithBotName(const Aws::String & value)112     inline GetBotChannelAssociationRequest& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
113 
114     /**
115      * <p>The name of the Amazon Lex bot.</p>
116      */
WithBotName(Aws::String && value)117     inline GetBotChannelAssociationRequest& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
118 
119     /**
120      * <p>The name of the Amazon Lex bot.</p>
121      */
WithBotName(const char * value)122     inline GetBotChannelAssociationRequest& WithBotName(const char* value) { SetBotName(value); return *this;}
123 
124 
125     /**
126      * <p>An alias pointing to the specific version of the Amazon Lex bot to which this
127      * association is being made.</p>
128      */
GetBotAlias()129     inline const Aws::String& GetBotAlias() const{ return m_botAlias; }
130 
131     /**
132      * <p>An alias pointing to the specific version of the Amazon Lex bot to which this
133      * association is being made.</p>
134      */
BotAliasHasBeenSet()135     inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
136 
137     /**
138      * <p>An alias pointing to the specific version of the Amazon Lex bot to which this
139      * association is being made.</p>
140      */
SetBotAlias(const Aws::String & value)141     inline void SetBotAlias(const Aws::String& value) { m_botAliasHasBeenSet = true; m_botAlias = value; }
142 
143     /**
144      * <p>An alias pointing to the specific version of the Amazon Lex bot to which this
145      * association is being made.</p>
146      */
SetBotAlias(Aws::String && value)147     inline void SetBotAlias(Aws::String&& value) { m_botAliasHasBeenSet = true; m_botAlias = std::move(value); }
148 
149     /**
150      * <p>An alias pointing to the specific version of the Amazon Lex bot to which this
151      * association is being made.</p>
152      */
SetBotAlias(const char * value)153     inline void SetBotAlias(const char* value) { m_botAliasHasBeenSet = true; m_botAlias.assign(value); }
154 
155     /**
156      * <p>An alias pointing to the specific version of the Amazon Lex bot to which this
157      * association is being made.</p>
158      */
WithBotAlias(const Aws::String & value)159     inline GetBotChannelAssociationRequest& WithBotAlias(const Aws::String& value) { SetBotAlias(value); return *this;}
160 
161     /**
162      * <p>An alias pointing to the specific version of the Amazon Lex bot to which this
163      * association is being made.</p>
164      */
WithBotAlias(Aws::String && value)165     inline GetBotChannelAssociationRequest& WithBotAlias(Aws::String&& value) { SetBotAlias(std::move(value)); return *this;}
166 
167     /**
168      * <p>An alias pointing to the specific version of the Amazon Lex bot to which this
169      * association is being made.</p>
170      */
WithBotAlias(const char * value)171     inline GetBotChannelAssociationRequest& WithBotAlias(const char* value) { SetBotAlias(value); return *this;}
172 
173   private:
174 
175     Aws::String m_name;
176     bool m_nameHasBeenSet;
177 
178     Aws::String m_botName;
179     bool m_botNameHasBeenSet;
180 
181     Aws::String m_botAlias;
182     bool m_botAliasHasBeenSet;
183   };
184 
185 } // namespace Model
186 } // namespace LexModelBuildingService
187 } // namespace Aws
188