AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateBotVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/LexModelsV2Request.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/BotVersionLocaleDetails.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LexModelsV2 {
17namespace Model {
18
22 public:
23 AWS_LEXMODELSV2_API CreateBotVersionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateBotVersion"; }
30
31 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetBotId() const { return m_botId; }
38 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
39 template <typename BotIdT = Aws::String>
40 void SetBotId(BotIdT&& value) {
41 m_botIdHasBeenSet = true;
42 m_botId = std::forward<BotIdT>(value);
43 }
44 template <typename BotIdT = Aws::String>
46 SetBotId(std::forward<BotIdT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
78 return m_botVersionLocaleSpecification;
79 }
80 inline bool BotVersionLocaleSpecificationHasBeenSet() const { return m_botVersionLocaleSpecificationHasBeenSet; }
81 template <typename BotVersionLocaleSpecificationT = Aws::Map<Aws::String, BotVersionLocaleDetails>>
82 void SetBotVersionLocaleSpecification(BotVersionLocaleSpecificationT&& value) {
83 m_botVersionLocaleSpecificationHasBeenSet = true;
84 m_botVersionLocaleSpecification = std::forward<BotVersionLocaleSpecificationT>(value);
85 }
86 template <typename BotVersionLocaleSpecificationT = Aws::Map<Aws::String, BotVersionLocaleDetails>>
87 CreateBotVersionRequest& WithBotVersionLocaleSpecification(BotVersionLocaleSpecificationT&& value) {
88 SetBotVersionLocaleSpecification(std::forward<BotVersionLocaleSpecificationT>(value));
89 return *this;
90 }
91 template <typename BotVersionLocaleSpecificationKeyT = Aws::String,
92 typename BotVersionLocaleSpecificationValueT = BotVersionLocaleDetails>
93 CreateBotVersionRequest& AddBotVersionLocaleSpecification(BotVersionLocaleSpecificationKeyT&& key,
94 BotVersionLocaleSpecificationValueT&& value) {
95 m_botVersionLocaleSpecificationHasBeenSet = true;
96 m_botVersionLocaleSpecification.emplace(std::forward<BotVersionLocaleSpecificationKeyT>(key),
97 std::forward<BotVersionLocaleSpecificationValueT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_botId;
103
104 Aws::String m_description;
105
106 Aws::Map<Aws::String, BotVersionLocaleDetails> m_botVersionLocaleSpecification;
107 bool m_botIdHasBeenSet = false;
108 bool m_descriptionHasBeenSet = false;
109 bool m_botVersionLocaleSpecificationHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace LexModelsV2
114} // namespace Aws
CreateBotVersionRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, BotVersionLocaleDetails > & GetBotVersionLocaleSpecification() const
AWS_LEXMODELSV2_API CreateBotVersionRequest()=default
CreateBotVersionRequest & WithBotVersionLocaleSpecification(BotVersionLocaleSpecificationT &&value)
CreateBotVersionRequest & WithBotId(BotIdT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
CreateBotVersionRequest & AddBotVersionLocaleSpecification(BotVersionLocaleSpecificationKeyT &&key, BotVersionLocaleSpecificationValueT &&value)
void SetBotVersionLocaleSpecification(BotVersionLocaleSpecificationT &&value)
virtual const char * GetServiceRequestName() const override
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