AWS SDK for C++  1.9.123
AWS SDK for C++
DeprecateThingTypeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "DeprecateThingType"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetThingTypeName() const{ return m_thingTypeName; }
42 
46  inline bool ThingTypeNameHasBeenSet() const { return m_thingTypeNameHasBeenSet; }
47 
51  inline void SetThingTypeName(const Aws::String& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = value; }
52 
56  inline void SetThingTypeName(Aws::String&& value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName = std::move(value); }
57 
61  inline void SetThingTypeName(const char* value) { m_thingTypeNameHasBeenSet = true; m_thingTypeName.assign(value); }
62 
66  inline DeprecateThingTypeRequest& WithThingTypeName(const Aws::String& value) { SetThingTypeName(value); return *this;}
67 
71  inline DeprecateThingTypeRequest& WithThingTypeName(Aws::String&& value) { SetThingTypeName(std::move(value)); return *this;}
72 
76  inline DeprecateThingTypeRequest& WithThingTypeName(const char* value) { SetThingTypeName(value); return *this;}
77 
78 
83  inline bool GetUndoDeprecate() const{ return m_undoDeprecate; }
84 
89  inline bool UndoDeprecateHasBeenSet() const { return m_undoDeprecateHasBeenSet; }
90 
95  inline void SetUndoDeprecate(bool value) { m_undoDeprecateHasBeenSet = true; m_undoDeprecate = value; }
96 
101  inline DeprecateThingTypeRequest& WithUndoDeprecate(bool value) { SetUndoDeprecate(value); return *this;}
102 
103  private:
104 
105  Aws::String m_thingTypeName;
106  bool m_thingTypeNameHasBeenSet;
107 
108  bool m_undoDeprecate;
109  bool m_undoDeprecateHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace IoT
114 } // namespace Aws
Aws::IoT::Model::DeprecateThingTypeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeprecateThingTypeRequest.h:33
Aws::IoT::Model::DeprecateThingTypeRequest::WithUndoDeprecate
DeprecateThingTypeRequest & WithUndoDeprecate(bool value)
Definition: DeprecateThingTypeRequest.h:101
Aws::IoT::Model::DeprecateThingTypeRequest
Definition: DeprecateThingTypeRequest.h:25
Aws::IoT::Model::DeprecateThingTypeRequest::GetUndoDeprecate
bool GetUndoDeprecate() const
Definition: DeprecateThingTypeRequest.h:83
Aws::IoT::Model::DeprecateThingTypeRequest::WithThingTypeName
DeprecateThingTypeRequest & WithThingTypeName(const char *value)
Definition: DeprecateThingTypeRequest.h:76
Aws::IoT::Model::DeprecateThingTypeRequest::ThingTypeNameHasBeenSet
bool ThingTypeNameHasBeenSet() const
Definition: DeprecateThingTypeRequest.h:46
Aws::IoT::Model::DeprecateThingTypeRequest::SetUndoDeprecate
void SetUndoDeprecate(bool value)
Definition: DeprecateThingTypeRequest.h:95
Aws::IoT::Model::DeprecateThingTypeRequest::UndoDeprecateHasBeenSet
bool UndoDeprecateHasBeenSet() const
Definition: DeprecateThingTypeRequest.h:89
Aws::IoT::Model::DeprecateThingTypeRequest::SetThingTypeName
void SetThingTypeName(Aws::String &&value)
Definition: DeprecateThingTypeRequest.h:56
Aws::IoT::Model::DeprecateThingTypeRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::DeprecateThingTypeRequest::WithThingTypeName
DeprecateThingTypeRequest & WithThingTypeName(Aws::String &&value)
Definition: DeprecateThingTypeRequest.h:71
Aws::IoT::Model::DeprecateThingTypeRequest::SetThingTypeName
void SetThingTypeName(const char *value)
Definition: DeprecateThingTypeRequest.h:61
Aws::IoT::Model::DeprecateThingTypeRequest::DeprecateThingTypeRequest
DeprecateThingTypeRequest()
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::DeprecateThingTypeRequest::GetThingTypeName
const Aws::String & GetThingTypeName() const
Definition: DeprecateThingTypeRequest.h:41
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IoTRequest.h
Aws::IoT::Model::DeprecateThingTypeRequest::SetThingTypeName
void SetThingTypeName(const Aws::String &value)
Definition: DeprecateThingTypeRequest.h:51
Aws::IoT::Model::DeprecateThingTypeRequest::WithThingTypeName
DeprecateThingTypeRequest & WithThingTypeName(const Aws::String &value)
Definition: DeprecateThingTypeRequest.h:66
IoT_EXPORTS.h