AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
UpdateConnectivityInfoRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/greengrassv2/GreengrassV2Request.h>
10#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
11#include <aws/greengrassv2/model/ConnectivityInfo.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GreengrassV2 {
17namespace Model {
18
22 public:
23 AWS_GREENGRASSV2_API UpdateConnectivityInfoRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateConnectivityInfo"; }
30
31 AWS_GREENGRASSV2_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetThingName() const { return m_thingName; }
38 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
39 template <typename ThingNameT = Aws::String>
40 void SetThingName(ThingNameT&& value) {
41 m_thingNameHasBeenSet = true;
42 m_thingName = std::forward<ThingNameT>(value);
43 }
44 template <typename ThingNameT = Aws::String>
46 SetThingName(std::forward<ThingNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<ConnectivityInfo>& GetConnectivityInfo() const { return m_connectivityInfo; }
56 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
57 template <typename ConnectivityInfoT = Aws::Vector<ConnectivityInfo>>
58 void SetConnectivityInfo(ConnectivityInfoT&& value) {
59 m_connectivityInfoHasBeenSet = true;
60 m_connectivityInfo = std::forward<ConnectivityInfoT>(value);
61 }
62 template <typename ConnectivityInfoT = Aws::Vector<ConnectivityInfo>>
64 SetConnectivityInfo(std::forward<ConnectivityInfoT>(value));
65 return *this;
66 }
67 template <typename ConnectivityInfoT = ConnectivityInfo>
69 m_connectivityInfoHasBeenSet = true;
70 m_connectivityInfo.emplace_back(std::forward<ConnectivityInfoT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_thingName;
76
77 Aws::Vector<ConnectivityInfo> m_connectivityInfo;
78 bool m_thingNameHasBeenSet = false;
79 bool m_connectivityInfoHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace GreengrassV2
84} // namespace Aws
UpdateConnectivityInfoRequest & WithConnectivityInfo(ConnectivityInfoT &&value)
AWS_GREENGRASSV2_API Aws::String SerializePayload() const override
const Aws::Vector< ConnectivityInfo > & GetConnectivityInfo() const
UpdateConnectivityInfoRequest & WithThingName(ThingNameT &&value)
AWS_GREENGRASSV2_API UpdateConnectivityInfoRequest()=default
UpdateConnectivityInfoRequest & AddConnectivityInfo(ConnectivityInfoT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector