AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDeviceProfileRequest.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/iotwireless/IoTWirelessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotwireless/model/LoRaWANDeviceProfile.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iotwireless/model/SidewalkCreateDeviceProfile.h>
13#include <aws/iotwireless/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace IoTWireless
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IOTWIRELESS_API CreateDeviceProfileRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateDeviceProfile"; }
36
37 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateDeviceProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateDeviceProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateDeviceProfileRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
58 inline const LoRaWANDeviceProfile& GetLoRaWAN() const{ return m_loRaWAN; }
59 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
60 inline void SetLoRaWAN(const LoRaWANDeviceProfile& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; }
61 inline void SetLoRaWAN(LoRaWANDeviceProfile&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); }
62 inline CreateDeviceProfileRequest& WithLoRaWAN(const LoRaWANDeviceProfile& value) { SetLoRaWAN(value); return *this;}
63 inline CreateDeviceProfileRequest& WithLoRaWAN(LoRaWANDeviceProfile&& value) { SetLoRaWAN(std::move(value)); return *this;}
65
67
71 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
72 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
73 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
74 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
75 inline CreateDeviceProfileRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
76 inline CreateDeviceProfileRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
77 inline CreateDeviceProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
78 inline CreateDeviceProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
80
82
93 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
94 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
95 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
96 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
97 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
99 inline CreateDeviceProfileRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
100 inline CreateDeviceProfileRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
102
104
108 inline const SidewalkCreateDeviceProfile& GetSidewalk() const{ return m_sidewalk; }
109 inline bool SidewalkHasBeenSet() const { return m_sidewalkHasBeenSet; }
110 inline void SetSidewalk(const SidewalkCreateDeviceProfile& value) { m_sidewalkHasBeenSet = true; m_sidewalk = value; }
111 inline void SetSidewalk(SidewalkCreateDeviceProfile&& value) { m_sidewalkHasBeenSet = true; m_sidewalk = std::move(value); }
113 inline CreateDeviceProfileRequest& WithSidewalk(SidewalkCreateDeviceProfile&& value) { SetSidewalk(std::move(value)); return *this;}
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 LoRaWANDeviceProfile m_loRaWAN;
121 bool m_loRaWANHasBeenSet = false;
122
123 Aws::Vector<Tag> m_tags;
124 bool m_tagsHasBeenSet = false;
125
126 Aws::String m_clientRequestToken;
127 bool m_clientRequestTokenHasBeenSet = false;
128
130 bool m_sidewalkHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace IoTWireless
135} // namespace Aws
void SetSidewalk(SidewalkCreateDeviceProfile &&value)
CreateDeviceProfileRequest & WithTags(const Aws::Vector< Tag > &value)
const SidewalkCreateDeviceProfile & GetSidewalk() const
void SetSidewalk(const SidewalkCreateDeviceProfile &value)
CreateDeviceProfileRequest & WithSidewalk(SidewalkCreateDeviceProfile &&value)
CreateDeviceProfileRequest & AddTags(const Tag &value)
CreateDeviceProfileRequest & WithSidewalk(const SidewalkCreateDeviceProfile &value)
CreateDeviceProfileRequest & WithClientRequestToken(Aws::String &&value)
CreateDeviceProfileRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDeviceProfileRequest & WithLoRaWAN(const LoRaWANDeviceProfile &value)
CreateDeviceProfileRequest & WithLoRaWAN(LoRaWANDeviceProfile &&value)
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
CreateDeviceProfileRequest & WithName(const char *value)
CreateDeviceProfileRequest & WithClientRequestToken(const Aws::String &value)
CreateDeviceProfileRequest & WithClientRequestToken(const char *value)
CreateDeviceProfileRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateDeviceProfileRequest & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector