AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SendManagedThingCommandRequest.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot-managed-integrations/model/CommandEndpoint.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoTManagedIntegrations
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOTMANAGEDINTEGRATIONS_API SendManagedThingCommandRequest() = 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 "SendManagedThingCommand"; }
33
34 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetManagedThingId() const { return m_managedThingId; }
42 inline bool ManagedThingIdHasBeenSet() const { return m_managedThingIdHasBeenSet; }
43 template<typename ManagedThingIdT = Aws::String>
44 void SetManagedThingId(ManagedThingIdT&& value) { m_managedThingIdHasBeenSet = true; m_managedThingId = std::forward<ManagedThingIdT>(value); }
45 template<typename ManagedThingIdT = Aws::String>
46 SendManagedThingCommandRequest& WithManagedThingId(ManagedThingIdT&& value) { SetManagedThingId(std::forward<ManagedThingIdT>(value)); return *this;}
48
50
53 inline const Aws::Vector<CommandEndpoint>& GetEndpoints() const { return m_endpoints; }
54 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
55 template<typename EndpointsT = Aws::Vector<CommandEndpoint>>
56 void SetEndpoints(EndpointsT&& value) { m_endpointsHasBeenSet = true; m_endpoints = std::forward<EndpointsT>(value); }
57 template<typename EndpointsT = Aws::Vector<CommandEndpoint>>
58 SendManagedThingCommandRequest& WithEndpoints(EndpointsT&& value) { SetEndpoints(std::forward<EndpointsT>(value)); return *this;}
59 template<typename EndpointsT = CommandEndpoint>
60 SendManagedThingCommandRequest& AddEndpoints(EndpointsT&& value) { m_endpointsHasBeenSet = true; m_endpoints.emplace_back(std::forward<EndpointsT>(value)); return *this; }
62
64
68 inline const Aws::String& GetAccountAssociationId() const { return m_accountAssociationId; }
69 inline bool AccountAssociationIdHasBeenSet() const { return m_accountAssociationIdHasBeenSet; }
70 template<typename AccountAssociationIdT = Aws::String>
71 void SetAccountAssociationId(AccountAssociationIdT&& value) { m_accountAssociationIdHasBeenSet = true; m_accountAssociationId = std::forward<AccountAssociationIdT>(value); }
72 template<typename AccountAssociationIdT = Aws::String>
73 SendManagedThingCommandRequest& WithAccountAssociationId(AccountAssociationIdT&& value) { SetAccountAssociationId(std::forward<AccountAssociationIdT>(value)); return *this;}
75 private:
76
77 Aws::String m_managedThingId;
78 bool m_managedThingIdHasBeenSet = false;
79
81 bool m_endpointsHasBeenSet = false;
82
83 Aws::String m_accountAssociationId;
84 bool m_accountAssociationIdHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace IoTManagedIntegrations
89} // namespace Aws
SendManagedThingCommandRequest & WithManagedThingId(ManagedThingIdT &&value)
SendManagedThingCommandRequest & WithAccountAssociationId(AccountAssociationIdT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API SendManagedThingCommandRequest()=default
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector