AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateServiceProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotwireless/IoTWirelessRequest.h>
11#include <aws/iotwireless/IoTWireless_EXPORTS.h>
12#include <aws/iotwireless/model/LoRaWANServiceProfile.h>
13#include <aws/iotwireless/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoTWireless {
19namespace Model {
20
24 public:
25 AWS_IOTWIRELESS_API CreateServiceProfileRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateServiceProfile"; }
32
33 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const LoRaWANServiceProfile& GetLoRaWAN() const { return m_loRaWAN; }
59 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
60 template <typename LoRaWANT = LoRaWANServiceProfile>
61 void SetLoRaWAN(LoRaWANT&& value) {
62 m_loRaWANHasBeenSet = true;
63 m_loRaWAN = std::forward<LoRaWANT>(value);
64 }
65 template <typename LoRaWANT = LoRaWANServiceProfile>
67 SetLoRaWAN(std::forward<LoRaWANT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 template <typename TagsT = Aws::Vector<Tag>>
80 void SetTags(TagsT&& value) {
81 m_tagsHasBeenSet = true;
82 m_tags = std::forward<TagsT>(value);
83 }
84 template <typename TagsT = Aws::Vector<Tag>>
86 SetTags(std::forward<TagsT>(value));
87 return *this;
88 }
89 template <typename TagsT = Tag>
91 m_tagsHasBeenSet = true;
92 m_tags.emplace_back(std::forward<TagsT>(value));
93 return *this;
94 }
96
98
109 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
110 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
111 template <typename ClientRequestTokenT = Aws::String>
112 void SetClientRequestToken(ClientRequestTokenT&& value) {
113 m_clientRequestTokenHasBeenSet = true;
114 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
115 }
116 template <typename ClientRequestTokenT = Aws::String>
118 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_name;
124
125 LoRaWANServiceProfile m_loRaWAN;
126
127 Aws::Vector<Tag> m_tags;
128
129 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
130 bool m_nameHasBeenSet = false;
131 bool m_loRaWANHasBeenSet = false;
132 bool m_tagsHasBeenSet = false;
133 bool m_clientRequestTokenHasBeenSet = true;
134};
135
136} // namespace Model
137} // namespace IoTWireless
138} // namespace Aws
CreateServiceProfileRequest & AddTags(TagsT &&value)
CreateServiceProfileRequest & WithTags(TagsT &&value)
AWS_IOTWIRELESS_API CreateServiceProfileRequest()=default
CreateServiceProfileRequest & WithName(NameT &&value)
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
CreateServiceProfileRequest & WithLoRaWAN(LoRaWANT &&value)
CreateServiceProfileRequest & WithClientRequestToken(ClientRequestTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector