AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetEndpointRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotdeviceadvisor/IoTDeviceAdvisorRequest.h>
9#include <aws/iotdeviceadvisor/IoTDeviceAdvisor_EXPORTS.h>
10#include <aws/iotdeviceadvisor/model/AuthenticationMethod.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace IoTDeviceAdvisor {
19namespace Model {
20
24 public:
25 AWS_IOTDEVICEADVISOR_API GetEndpointRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetEndpoint"; }
32
33 AWS_IOTDEVICEADVISOR_API Aws::String SerializePayload() const override;
34
35 AWS_IOTDEVICEADVISOR_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetThingArn() const { return m_thingArn; }
42 inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
43 template <typename ThingArnT = Aws::String>
44 void SetThingArn(ThingArnT&& value) {
45 m_thingArnHasBeenSet = true;
46 m_thingArn = std::forward<ThingArnT>(value);
47 }
48 template <typename ThingArnT = Aws::String>
49 GetEndpointRequest& WithThingArn(ThingArnT&& value) {
50 SetThingArn(std::forward<ThingArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
60 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
61 template <typename CertificateArnT = Aws::String>
62 void SetCertificateArn(CertificateArnT&& value) {
63 m_certificateArnHasBeenSet = true;
64 m_certificateArn = std::forward<CertificateArnT>(value);
65 }
66 template <typename CertificateArnT = Aws::String>
67 GetEndpointRequest& WithCertificateArn(CertificateArnT&& value) {
68 SetCertificateArn(std::forward<CertificateArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDeviceRoleArn() const { return m_deviceRoleArn; }
78 inline bool DeviceRoleArnHasBeenSet() const { return m_deviceRoleArnHasBeenSet; }
79 template <typename DeviceRoleArnT = Aws::String>
80 void SetDeviceRoleArn(DeviceRoleArnT&& value) {
81 m_deviceRoleArnHasBeenSet = true;
82 m_deviceRoleArn = std::forward<DeviceRoleArnT>(value);
83 }
84 template <typename DeviceRoleArnT = Aws::String>
85 GetEndpointRequest& WithDeviceRoleArn(DeviceRoleArnT&& value) {
86 SetDeviceRoleArn(std::forward<DeviceRoleArnT>(value));
87 return *this;
88 }
90
92
95 inline AuthenticationMethod GetAuthenticationMethod() const { return m_authenticationMethod; }
96 inline bool AuthenticationMethodHasBeenSet() const { return m_authenticationMethodHasBeenSet; }
98 m_authenticationMethodHasBeenSet = true;
99 m_authenticationMethod = value;
100 }
106 private:
107 Aws::String m_thingArn;
108
109 Aws::String m_certificateArn;
110
111 Aws::String m_deviceRoleArn;
112
114 bool m_thingArnHasBeenSet = false;
115 bool m_certificateArnHasBeenSet = false;
116 bool m_deviceRoleArnHasBeenSet = false;
117 bool m_authenticationMethodHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace IoTDeviceAdvisor
122} // namespace Aws
GetEndpointRequest & WithCertificateArn(CertificateArnT &&value)
GetEndpointRequest & WithAuthenticationMethod(AuthenticationMethod value)
void SetAuthenticationMethod(AuthenticationMethod value)
GetEndpointRequest & WithThingArn(ThingArnT &&value)
GetEndpointRequest & WithDeviceRoleArn(DeviceRoleArnT &&value)
AWS_IOTDEVICEADVISOR_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_IOTDEVICEADVISOR_API GetEndpointRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_IOTDEVICEADVISOR_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String