AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline CreateServiceProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline CreateServiceProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline CreateServiceProfileRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
57 inline const LoRaWANServiceProfile& GetLoRaWAN() const{ return m_loRaWAN; }
58 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
59 inline void SetLoRaWAN(const LoRaWANServiceProfile& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; }
60 inline void SetLoRaWAN(LoRaWANServiceProfile&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); }
61 inline CreateServiceProfileRequest& WithLoRaWAN(const LoRaWANServiceProfile& value) { SetLoRaWAN(value); return *this;}
62 inline CreateServiceProfileRequest& WithLoRaWAN(LoRaWANServiceProfile&& value) { SetLoRaWAN(std::move(value)); return *this;}
64
66
70 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
73 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
74 inline CreateServiceProfileRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
75 inline CreateServiceProfileRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
76 inline CreateServiceProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
77 inline CreateServiceProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
79
81
92 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
93 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
94 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
95 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
96 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
98 inline CreateServiceProfileRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
99 inline CreateServiceProfileRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
101 private:
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 LoRaWANServiceProfile m_loRaWAN;
107 bool m_loRaWANHasBeenSet = false;
108
109 Aws::Vector<Tag> m_tags;
110 bool m_tagsHasBeenSet = false;
111
112 Aws::String m_clientRequestToken;
113 bool m_clientRequestTokenHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace IoTWireless
118} // namespace Aws
CreateServiceProfileRequest & WithTags(Aws::Vector< Tag > &&value)
CreateServiceProfileRequest & WithLoRaWAN(const LoRaWANServiceProfile &value)
CreateServiceProfileRequest & WithClientRequestToken(Aws::String &&value)
CreateServiceProfileRequest & WithName(const char *value)
CreateServiceProfileRequest & WithLoRaWAN(LoRaWANServiceProfile &&value)
CreateServiceProfileRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
CreateServiceProfileRequest & WithName(const Aws::String &value)
CreateServiceProfileRequest & WithName(Aws::String &&value)
CreateServiceProfileRequest & WithClientRequestToken(const char *value)
CreateServiceProfileRequest & WithClientRequestToken(const Aws::String &value)
CreateServiceProfileRequest & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector