AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateConnectivityInfoRequest.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/greengrass/GreengrassRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/greengrass/model/ConnectivityInfo.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Greengrass
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_GREENGRASS_API UpdateConnectivityInfoRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateConnectivityInfo"; }
36
37 AWS_GREENGRASS_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::Vector<ConnectivityInfo>& GetConnectivityInfo() const { return m_connectivityInfo; }
45 inline bool ConnectivityInfoHasBeenSet() const { return m_connectivityInfoHasBeenSet; }
46 template<typename ConnectivityInfoT = Aws::Vector<ConnectivityInfo>>
47 void SetConnectivityInfo(ConnectivityInfoT&& value) { m_connectivityInfoHasBeenSet = true; m_connectivityInfo = std::forward<ConnectivityInfoT>(value); }
48 template<typename ConnectivityInfoT = Aws::Vector<ConnectivityInfo>>
49 UpdateConnectivityInfoRequest& WithConnectivityInfo(ConnectivityInfoT&& value) { SetConnectivityInfo(std::forward<ConnectivityInfoT>(value)); return *this;}
50 template<typename ConnectivityInfoT = ConnectivityInfo>
51 UpdateConnectivityInfoRequest& AddConnectivityInfo(ConnectivityInfoT&& value) { m_connectivityInfoHasBeenSet = true; m_connectivityInfo.emplace_back(std::forward<ConnectivityInfoT>(value)); return *this; }
53
55
58 inline const Aws::String& GetThingName() const { return m_thingName; }
59 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
60 template<typename ThingNameT = Aws::String>
61 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
62 template<typename ThingNameT = Aws::String>
63 UpdateConnectivityInfoRequest& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
65 private:
66
67 Aws::Vector<ConnectivityInfo> m_connectivityInfo;
68 bool m_connectivityInfoHasBeenSet = false;
69
70 Aws::String m_thingName;
71 bool m_thingNameHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Greengrass
76} // 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