AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateServiceProfileRequest.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/LoRaWANServiceProfile.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iotwireless/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace IoTWireless
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTWIRELESS_API CreateServiceProfileRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateServiceProfile"; }
35
36 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateServiceProfileRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
56 inline const LoRaWANServiceProfile& GetLoRaWAN() const { return m_loRaWAN; }
57 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
58 template<typename LoRaWANT = LoRaWANServiceProfile>
59 void SetLoRaWAN(LoRaWANT&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::forward<LoRaWANT>(value); }
60 template<typename LoRaWANT = LoRaWANServiceProfile>
61 CreateServiceProfileRequest& WithLoRaWAN(LoRaWANT&& value) { SetLoRaWAN(std::forward<LoRaWANT>(value)); return *this;}
63
65
69 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
70 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
71 template<typename TagsT = Aws::Vector<Tag>>
72 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
73 template<typename TagsT = Aws::Vector<Tag>>
74 CreateServiceProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
75 template<typename TagsT = Tag>
76 CreateServiceProfileRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
78
80
91 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
92 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
93 template<typename ClientRequestTokenT = Aws::String>
94 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
95 template<typename ClientRequestTokenT = Aws::String>
96 CreateServiceProfileRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
98 private:
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 LoRaWANServiceProfile m_loRaWAN;
104 bool m_loRaWANHasBeenSet = false;
105
106 Aws::Vector<Tag> m_tags;
107 bool m_tagsHasBeenSet = false;
108
109 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
110 bool m_clientRequestTokenHasBeenSet = true;
111 };
112
113} // namespace Model
114} // namespace IoTWireless
115} // 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