AWS SDK for C++  1.9.40
AWS SDK for C++
DeleteBotVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace LexModelBuildingService
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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.
30  inline virtual const char* GetServiceRequestName() const override { return "DeleteBotVersion"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetName() const{ return m_name; }
39 
43  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 
48  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 
53  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 
58  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
59 
63  inline DeleteBotVersionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
64 
68  inline DeleteBotVersionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 
73  inline DeleteBotVersionRequest& WithName(const char* value) { SetName(value); return *this;}
74 
75 
81  inline const Aws::String& GetVersion() const{ return m_version; }
82 
88  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
89 
95  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
96 
102  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
103 
109  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
110 
116  inline DeleteBotVersionRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
117 
123  inline DeleteBotVersionRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
124 
130  inline DeleteBotVersionRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
131 
132  private:
133 
134  Aws::String m_name;
135  bool m_nameHasBeenSet;
136 
137  Aws::String m_version;
138  bool m_versionHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace LexModelBuildingService
143 } // namespace Aws
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::GetVersion
const Aws::String & GetVersion() const
Definition: DeleteBotVersionRequest.h:81
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::WithName
DeleteBotVersionRequest & WithName(const Aws::String &value)
Definition: DeleteBotVersionRequest.h:63
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::DeleteBotVersionRequest
DeleteBotVersionRequest()
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: DeleteBotVersionRequest.h:88
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::SetVersion
void SetVersion(Aws::String &&value)
Definition: DeleteBotVersionRequest.h:102
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::WithVersion
DeleteBotVersionRequest & WithVersion(const char *value)
Definition: DeleteBotVersionRequest.h:130
LexModelBuildingServiceRequest.h
Aws::LexModelBuildingService::LexModelBuildingServiceRequest
Definition: LexModelBuildingServiceRequest.h:17
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::SetVersion
void SetVersion(const Aws::String &value)
Definition: DeleteBotVersionRequest.h:95
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::SetName
void SetName(const char *value)
Definition: DeleteBotVersionRequest.h:58
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteBotVersionRequest.h:30
LexModelBuildingService_EXPORTS.h
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::WithVersion
DeleteBotVersionRequest & WithVersion(Aws::String &&value)
Definition: DeleteBotVersionRequest.h:123
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::SetVersion
void SetVersion(const char *value)
Definition: DeleteBotVersionRequest.h:109
AWSString.h
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::WithVersion
DeleteBotVersionRequest & WithVersion(const Aws::String &value)
Definition: DeleteBotVersionRequest.h:116
AWS_LEXMODELBUILDINGSERVICE_API
#define AWS_LEXMODELBUILDINGSERVICE_API
Definition: LexModelBuildingService_EXPORTS.h:28
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::SetName
void SetName(const Aws::String &value)
Definition: DeleteBotVersionRequest.h:48
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DeleteBotVersionRequest.h:43
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest
Definition: DeleteBotVersionRequest.h:22
Aws
Definition: AccessManagementClient.h:15
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::WithName
DeleteBotVersionRequest & WithName(const char *value)
Definition: DeleteBotVersionRequest.h:73
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::WithName
DeleteBotVersionRequest & WithName(Aws::String &&value)
Definition: DeleteBotVersionRequest.h:68
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::SetName
void SetName(Aws::String &&value)
Definition: DeleteBotVersionRequest.h:53
Aws::LexModelBuildingService::Model::DeleteBotVersionRequest::GetName
const Aws::String & GetName() const
Definition: DeleteBotVersionRequest.h:38