AWS SDK for C++  1.9.40
AWS SDK for C++
GetSlotTypeRequest.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 "GetSlotType"; }
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 GetSlotTypeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
64 
68  inline GetSlotTypeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 
73  inline GetSlotTypeRequest& WithName(const char* value) { SetName(value); return *this;}
74 
75 
79  inline const Aws::String& GetVersion() const{ return m_version; }
80 
84  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
85 
89  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
90 
94  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
95 
99  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
100 
104  inline GetSlotTypeRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
105 
109  inline GetSlotTypeRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
110 
114  inline GetSlotTypeRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
115 
116  private:
117 
118  Aws::String m_name;
119  bool m_nameHasBeenSet;
120 
121  Aws::String m_version;
122  bool m_versionHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace LexModelBuildingService
127 } // namespace Aws
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::SetName
void SetName(Aws::String &&value)
Definition: GetSlotTypeRequest.h:53
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::SetVersion
void SetVersion(Aws::String &&value)
Definition: GetSlotTypeRequest.h:94
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::WithName
GetSlotTypeRequest & WithName(const Aws::String &value)
Definition: GetSlotTypeRequest.h:63
LexModelBuildingServiceRequest.h
Aws::LexModelBuildingService::Model::GetSlotTypeRequest
Definition: GetSlotTypeRequest.h:22
Aws::LexModelBuildingService::LexModelBuildingServiceRequest
Definition: LexModelBuildingServiceRequest.h:17
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::WithName
GetSlotTypeRequest & WithName(Aws::String &&value)
Definition: GetSlotTypeRequest.h:68
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::WithName
GetSlotTypeRequest & WithName(const char *value)
Definition: GetSlotTypeRequest.h:73
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::GetSlotTypeRequest
GetSlotTypeRequest()
LexModelBuildingService_EXPORTS.h
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: GetSlotTypeRequest.h:84
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::WithVersion
GetSlotTypeRequest & WithVersion(Aws::String &&value)
Definition: GetSlotTypeRequest.h:109
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::SetVersion
void SetVersion(const char *value)
Definition: GetSlotTypeRequest.h:99
AWSString.h
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_LEXMODELBUILDINGSERVICE_API
#define AWS_LEXMODELBUILDINGSERVICE_API
Definition: LexModelBuildingService_EXPORTS.h:28
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::SetName
void SetName(const char *value)
Definition: GetSlotTypeRequest.h:58
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::WithVersion
GetSlotTypeRequest & WithVersion(const Aws::String &value)
Definition: GetSlotTypeRequest.h:104
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::SetVersion
void SetVersion(const Aws::String &value)
Definition: GetSlotTypeRequest.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::WithVersion
GetSlotTypeRequest & WithVersion(const char *value)
Definition: GetSlotTypeRequest.h:114
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::GetName
const Aws::String & GetName() const
Definition: GetSlotTypeRequest.h:38
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::GetVersion
const Aws::String & GetVersion() const
Definition: GetSlotTypeRequest.h:79
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: GetSlotTypeRequest.h:43
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::SetName
void SetName(const Aws::String &value)
Definition: GetSlotTypeRequest.h:48
Aws::LexModelBuildingService::Model::GetSlotTypeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSlotTypeRequest.h:30