AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListBotVersionsRequest.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/lexv2-models/model/BotVersionSortBy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace LexModelsV2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LEXMODELSV2_API ListBotVersionsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListBotVersions"; }
32
33 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetBotId() const { return m_botId; }
41 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
42 template<typename BotIdT = Aws::String>
43 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
44 template<typename BotIdT = Aws::String>
45 ListBotVersionsRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
47
49
53 inline const BotVersionSortBy& GetSortBy() const { return m_sortBy; }
54 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
55 template<typename SortByT = BotVersionSortBy>
56 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
57 template<typename SortByT = BotVersionSortBy>
58 ListBotVersionsRequest& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
60
62
67 inline int GetMaxResults() const { return m_maxResults; }
68 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
69 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
70 inline ListBotVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
72
74
80 inline const Aws::String& GetNextToken() const { return m_nextToken; }
81 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
82 template<typename NextTokenT = Aws::String>
83 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
84 template<typename NextTokenT = Aws::String>
85 ListBotVersionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
87 private:
88
89 Aws::String m_botId;
90 bool m_botIdHasBeenSet = false;
91
92 BotVersionSortBy m_sortBy;
93 bool m_sortByHasBeenSet = false;
94
95 int m_maxResults{0};
96 bool m_maxResultsHasBeenSet = false;
97
98 Aws::String m_nextToken;
99 bool m_nextTokenHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace LexModelsV2
104} // namespace Aws
ListBotVersionsRequest & WithNextToken(NextTokenT &&value)
ListBotVersionsRequest & WithMaxResults(int value)
ListBotVersionsRequest & WithSortBy(SortByT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
ListBotVersionsRequest & WithBotId(BotIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_LEXMODELSV2_API ListBotVersionsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String