AWS SDK for C++  1.9.131
AWS SDK for C++
UpdateDeviceDefinitionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Greengrass
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 "UpdateDeviceDefinition"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetDeviceDefinitionId() const{ return m_deviceDefinitionId; }
39 
43  inline bool DeviceDefinitionIdHasBeenSet() const { return m_deviceDefinitionIdHasBeenSet; }
44 
48  inline void SetDeviceDefinitionId(const Aws::String& value) { m_deviceDefinitionIdHasBeenSet = true; m_deviceDefinitionId = value; }
49 
53  inline void SetDeviceDefinitionId(Aws::String&& value) { m_deviceDefinitionIdHasBeenSet = true; m_deviceDefinitionId = std::move(value); }
54 
58  inline void SetDeviceDefinitionId(const char* value) { m_deviceDefinitionIdHasBeenSet = true; m_deviceDefinitionId.assign(value); }
59 
63  inline UpdateDeviceDefinitionRequest& WithDeviceDefinitionId(const Aws::String& value) { SetDeviceDefinitionId(value); return *this;}
64 
68  inline UpdateDeviceDefinitionRequest& WithDeviceDefinitionId(Aws::String&& value) { SetDeviceDefinitionId(std::move(value)); return *this;}
69 
73  inline UpdateDeviceDefinitionRequest& WithDeviceDefinitionId(const char* value) { SetDeviceDefinitionId(value); return *this;}
74 
75 
79  inline const Aws::String& GetName() const{ return m_name; }
80 
84  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 
89  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
90 
94  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
95 
99  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
100 
104  inline UpdateDeviceDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
105 
109  inline UpdateDeviceDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
110 
114  inline UpdateDeviceDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
115 
116  private:
117 
118  Aws::String m_deviceDefinitionId;
119  bool m_deviceDefinitionIdHasBeenSet;
120 
121  Aws::String m_name;
122  bool m_nameHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace Greengrass
127 } // namespace Aws
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::UpdateDeviceDefinitionRequest
UpdateDeviceDefinitionRequest()
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest
Definition: UpdateDeviceDefinitionRequest.h:22
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::WithName
UpdateDeviceDefinitionRequest & WithName(Aws::String &&value)
Definition: UpdateDeviceDefinitionRequest.h:109
Greengrass_EXPORTS.h
AWS_GREENGRASS_API
#define AWS_GREENGRASS_API
Definition: Greengrass_EXPORTS.h:28
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::WithDeviceDefinitionId
UpdateDeviceDefinitionRequest & WithDeviceDefinitionId(const Aws::String &value)
Definition: UpdateDeviceDefinitionRequest.h:63
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateDeviceDefinitionRequest.h:84
GreengrassRequest.h
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::SetDeviceDefinitionId
void SetDeviceDefinitionId(const char *value)
Definition: UpdateDeviceDefinitionRequest.h:58
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::SetDeviceDefinitionId
void SetDeviceDefinitionId(const Aws::String &value)
Definition: UpdateDeviceDefinitionRequest.h:48
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::WithDeviceDefinitionId
UpdateDeviceDefinitionRequest & WithDeviceDefinitionId(Aws::String &&value)
Definition: UpdateDeviceDefinitionRequest.h:68
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateDeviceDefinitionRequest.h:94
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateDeviceDefinitionRequest.h:89
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::WithDeviceDefinitionId
UpdateDeviceDefinitionRequest & WithDeviceDefinitionId(const char *value)
Definition: UpdateDeviceDefinitionRequest.h:73
AWSString.h
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::SetName
void SetName(const char *value)
Definition: UpdateDeviceDefinitionRequest.h:99
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::WithName
UpdateDeviceDefinitionRequest & WithName(const char *value)
Definition: UpdateDeviceDefinitionRequest.h:114
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::DeviceDefinitionIdHasBeenSet
bool DeviceDefinitionIdHasBeenSet() const
Definition: UpdateDeviceDefinitionRequest.h:43
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::SetDeviceDefinitionId
void SetDeviceDefinitionId(Aws::String &&value)
Definition: UpdateDeviceDefinitionRequest.h:53
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::GetDeviceDefinitionId
const Aws::String & GetDeviceDefinitionId() const
Definition: UpdateDeviceDefinitionRequest.h:38
Aws::Greengrass::GreengrassRequest
Definition: GreengrassRequest.h:17
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::GetName
const Aws::String & GetName() const
Definition: UpdateDeviceDefinitionRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::WithName
UpdateDeviceDefinitionRequest & WithName(const Aws::String &value)
Definition: UpdateDeviceDefinitionRequest.h:104
Aws::Greengrass::Model::UpdateDeviceDefinitionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDeviceDefinitionRequest.h:30