AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDeviceDefinitionVersionRequest.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/GreengrassRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/greengrass/model/Device.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Greengrass
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDeviceDefinitionVersion"; }
33
34 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
44 inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
45 inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
46 inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
47 inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
50 inline CreateDeviceDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
52
54
57 inline const Aws::String& GetDeviceDefinitionId() const{ return m_deviceDefinitionId; }
58 inline bool DeviceDefinitionIdHasBeenSet() const { return m_deviceDefinitionIdHasBeenSet; }
59 inline void SetDeviceDefinitionId(const Aws::String& value) { m_deviceDefinitionIdHasBeenSet = true; m_deviceDefinitionId = value; }
60 inline void SetDeviceDefinitionId(Aws::String&& value) { m_deviceDefinitionIdHasBeenSet = true; m_deviceDefinitionId = std::move(value); }
61 inline void SetDeviceDefinitionId(const char* value) { m_deviceDefinitionIdHasBeenSet = true; m_deviceDefinitionId.assign(value); }
64 inline CreateDeviceDefinitionVersionRequest& WithDeviceDefinitionId(const char* value) { SetDeviceDefinitionId(value); return *this;}
66
68
71 inline const Aws::Vector<Device>& GetDevices() const{ return m_devices; }
72 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
73 inline void SetDevices(const Aws::Vector<Device>& value) { m_devicesHasBeenSet = true; m_devices = value; }
74 inline void SetDevices(Aws::Vector<Device>&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); }
76 inline CreateDeviceDefinitionVersionRequest& WithDevices(Aws::Vector<Device>&& value) { SetDevices(std::move(value)); return *this;}
77 inline CreateDeviceDefinitionVersionRequest& AddDevices(const Device& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; }
78 inline CreateDeviceDefinitionVersionRequest& AddDevices(Device&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; }
80 private:
81
82 Aws::String m_amznClientToken;
83 bool m_amznClientTokenHasBeenSet = false;
84
85 Aws::String m_deviceDefinitionId;
86 bool m_deviceDefinitionIdHasBeenSet = false;
87
88 Aws::Vector<Device> m_devices;
89 bool m_devicesHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace Greengrass
94} // namespace Aws
CreateDeviceDefinitionVersionRequest & WithDeviceDefinitionId(const Aws::String &value)
CreateDeviceDefinitionVersionRequest & WithDevices(Aws::Vector< Device > &&value)
CreateDeviceDefinitionVersionRequest & WithAmznClientToken(Aws::String &&value)
CreateDeviceDefinitionVersionRequest & WithDeviceDefinitionId(Aws::String &&value)
AWS_GREENGRASS_API Aws::String SerializePayload() const override
CreateDeviceDefinitionVersionRequest & AddDevices(const Device &value)
CreateDeviceDefinitionVersionRequest & WithAmznClientToken(const Aws::String &value)
AWS_GREENGRASS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDeviceDefinitionVersionRequest & AddDevices(Device &&value)
CreateDeviceDefinitionVersionRequest & WithDeviceDefinitionId(const char *value)
CreateDeviceDefinitionVersionRequest & WithDevices(const Aws::Vector< Device > &value)
CreateDeviceDefinitionVersionRequest & WithAmznClientToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector