AWS SDK for C++

AWS SDK for C++ Version 1.11.684

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/greengrass/GreengrassRequest.h>
10#include <aws/greengrass/Greengrass_EXPORTS.h>
11#include <aws/greengrass/model/ConnectivityInfo.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Greengrass {
17namespace Model {
18
25 public:
26 AWS_GREENGRASS_API UpdateConnectivityInfoRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateConnectivityInfo"; }
33
34 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::Vector<ConnectivityInfo>& GetConnectivityInfo() const { return m_connectivityInfo; }
41 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
42 template <typename ConnectivityInfoT = Aws::Vector<ConnectivityInfo>>
43 void SetConnectivityInfo(ConnectivityInfoT&& value) {
44 m_connectivityInfoHasBeenSet = true;
45 m_connectivityInfo = std::forward<ConnectivityInfoT>(value);
46 }
47 template <typename ConnectivityInfoT = Aws::Vector<ConnectivityInfo>>
49 SetConnectivityInfo(std::forward<ConnectivityInfoT>(value));
50 return *this;
51 }
52 template <typename ConnectivityInfoT = ConnectivityInfo>
54 m_connectivityInfoHasBeenSet = true;
55 m_connectivityInfo.emplace_back(std::forward<ConnectivityInfoT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetThingName() const { return m_thingName; }
65 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
66 template <typename ThingNameT = Aws::String>
67 void SetThingName(ThingNameT&& value) {
68 m_thingNameHasBeenSet = true;
69 m_thingName = std::forward<ThingNameT>(value);
70 }
71 template <typename ThingNameT = Aws::String>
73 SetThingName(std::forward<ThingNameT>(value));
74 return *this;
75 }
77 private:
78 Aws::Vector<ConnectivityInfo> m_connectivityInfo;
79 bool m_connectivityInfoHasBeenSet = false;
80
81 Aws::String m_thingName;
82 bool m_thingNameHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Greengrass
87} // namespace Aws
UpdateConnectivityInfoRequest & AddConnectivityInfo(ConnectivityInfoT &&value)
AWS_GREENGRASS_API UpdateConnectivityInfoRequest()=default
UpdateConnectivityInfoRequest & WithConnectivityInfo(ConnectivityInfoT &&value)
UpdateConnectivityInfoRequest & WithThingName(ThingNameT &&value)
AWS_GREENGRASS_API Aws::String SerializePayload() const override
const Aws::Vector< ConnectivityInfo > & GetConnectivityInfo() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector