AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBotVersionRequest.h
1
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 <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/lexv2-models/model/BotVersionLocaleDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LexModelsV2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LEXMODELSV2_API CreateBotVersionRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateBotVersion"; }
33
34 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetBotId() const{ return m_botId; }
42 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
43 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
44 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
45 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
46 inline CreateBotVersionRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
47 inline CreateBotVersionRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
48 inline CreateBotVersionRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
50
52
56 inline const Aws::String& GetDescription() const{ return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
60 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
61 inline CreateBotVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline CreateBotVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline CreateBotVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
73 inline const Aws::Map<Aws::String, BotVersionLocaleDetails>& GetBotVersionLocaleSpecification() const{ return m_botVersionLocaleSpecification; }
74 inline bool BotVersionLocaleSpecificationHasBeenSet() const { return m_botVersionLocaleSpecificationHasBeenSet; }
75 inline void SetBotVersionLocaleSpecification(const Aws::Map<Aws::String, BotVersionLocaleDetails>& value) { m_botVersionLocaleSpecificationHasBeenSet = true; m_botVersionLocaleSpecification = value; }
76 inline void SetBotVersionLocaleSpecification(Aws::Map<Aws::String, BotVersionLocaleDetails>&& value) { m_botVersionLocaleSpecificationHasBeenSet = true; m_botVersionLocaleSpecification = std::move(value); }
79 inline CreateBotVersionRequest& AddBotVersionLocaleSpecification(const Aws::String& key, const BotVersionLocaleDetails& value) { m_botVersionLocaleSpecificationHasBeenSet = true; m_botVersionLocaleSpecification.emplace(key, value); return *this; }
80 inline CreateBotVersionRequest& AddBotVersionLocaleSpecification(Aws::String&& key, const BotVersionLocaleDetails& value) { m_botVersionLocaleSpecificationHasBeenSet = true; m_botVersionLocaleSpecification.emplace(std::move(key), value); return *this; }
81 inline CreateBotVersionRequest& AddBotVersionLocaleSpecification(const Aws::String& key, BotVersionLocaleDetails&& value) { m_botVersionLocaleSpecificationHasBeenSet = true; m_botVersionLocaleSpecification.emplace(key, std::move(value)); return *this; }
82 inline CreateBotVersionRequest& AddBotVersionLocaleSpecification(Aws::String&& key, BotVersionLocaleDetails&& value) { m_botVersionLocaleSpecificationHasBeenSet = true; m_botVersionLocaleSpecification.emplace(std::move(key), std::move(value)); return *this; }
83 inline CreateBotVersionRequest& AddBotVersionLocaleSpecification(const char* key, BotVersionLocaleDetails&& value) { m_botVersionLocaleSpecificationHasBeenSet = true; m_botVersionLocaleSpecification.emplace(key, std::move(value)); return *this; }
84 inline CreateBotVersionRequest& AddBotVersionLocaleSpecification(const char* key, const BotVersionLocaleDetails& value) { m_botVersionLocaleSpecificationHasBeenSet = true; m_botVersionLocaleSpecification.emplace(key, value); return *this; }
86 private:
87
88 Aws::String m_botId;
89 bool m_botIdHasBeenSet = false;
90
91 Aws::String m_description;
92 bool m_descriptionHasBeenSet = false;
93
94 Aws::Map<Aws::String, BotVersionLocaleDetails> m_botVersionLocaleSpecification;
95 bool m_botVersionLocaleSpecificationHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace LexModelsV2
100} // namespace Aws
void SetBotVersionLocaleSpecification(Aws::Map< Aws::String, BotVersionLocaleDetails > &&value)
const Aws::Map< Aws::String, BotVersionLocaleDetails > & GetBotVersionLocaleSpecification() const
CreateBotVersionRequest & WithBotId(const char *value)
CreateBotVersionRequest & AddBotVersionLocaleSpecification(Aws::String &&key, BotVersionLocaleDetails &&value)
CreateBotVersionRequest & WithBotId(const Aws::String &value)
CreateBotVersionRequest & WithDescription(const char *value)
void SetBotVersionLocaleSpecification(const Aws::Map< Aws::String, BotVersionLocaleDetails > &value)
CreateBotVersionRequest & WithBotId(Aws::String &&value)
CreateBotVersionRequest & AddBotVersionLocaleSpecification(const char *key, BotVersionLocaleDetails &&value)
CreateBotVersionRequest & AddBotVersionLocaleSpecification(const Aws::String &key, BotVersionLocaleDetails &&value)
CreateBotVersionRequest & WithBotVersionLocaleSpecification(const Aws::Map< Aws::String, BotVersionLocaleDetails > &value)
CreateBotVersionRequest & AddBotVersionLocaleSpecification(Aws::String &&key, const BotVersionLocaleDetails &value)
CreateBotVersionRequest & WithBotVersionLocaleSpecification(Aws::Map< Aws::String, BotVersionLocaleDetails > &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
CreateBotVersionRequest & WithDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateBotVersionRequest & WithDescription(Aws::String &&value)
CreateBotVersionRequest & AddBotVersionLocaleSpecification(const char *key, const BotVersionLocaleDetails &value)
CreateBotVersionRequest & AddBotVersionLocaleSpecification(const Aws::String &key, const BotVersionLocaleDetails &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String