AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
43 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
44 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
45 inline ListBotVersionsRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
46 inline ListBotVersionsRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
47 inline ListBotVersionsRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
49
51
55 inline const BotVersionSortBy& GetSortBy() const{ return m_sortBy; }
56 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
57 inline void SetSortBy(const BotVersionSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
58 inline void SetSortBy(BotVersionSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
59 inline ListBotVersionsRequest& WithSortBy(const BotVersionSortBy& value) { SetSortBy(value); return *this;}
60 inline ListBotVersionsRequest& WithSortBy(BotVersionSortBy&& value) { SetSortBy(std::move(value)); return *this;}
62
64
69 inline int GetMaxResults() const{ return m_maxResults; }
70 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
71 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
72 inline ListBotVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
74
76
82 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
85 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
86 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
87 inline ListBotVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
88 inline ListBotVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
89 inline ListBotVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
91 private:
92
93 Aws::String m_botId;
94 bool m_botIdHasBeenSet = false;
95
96 BotVersionSortBy m_sortBy;
97 bool m_sortByHasBeenSet = false;
98
99 int m_maxResults;
100 bool m_maxResultsHasBeenSet = false;
101
102 Aws::String m_nextToken;
103 bool m_nextTokenHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace LexModelsV2
108} // namespace Aws
ListBotVersionsRequest & WithNextToken(const char *value)
ListBotVersionsRequest & WithBotId(Aws::String &&value)
ListBotVersionsRequest & WithMaxResults(int value)
ListBotVersionsRequest & WithBotId(const char *value)
ListBotVersionsRequest & WithNextToken(const Aws::String &value)
ListBotVersionsRequest & WithSortBy(BotVersionSortBy &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
ListBotVersionsRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListBotVersionsRequest & WithSortBy(const BotVersionSortBy &value)
ListBotVersionsRequest & WithBotId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String