AWS SDK for C++  1.9.175
AWS SDK for C++
GetEndpointRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoTDeviceAdvisor
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetEndpoint"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetThingArn() const{ return m_thingArn; }
45 
49  inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
50 
54  inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
55 
59  inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
60 
64  inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
65 
69  inline GetEndpointRequest& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
70 
74  inline GetEndpointRequest& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
75 
79  inline GetEndpointRequest& WithThingArn(const char* value) { SetThingArn(value); return *this;}
80 
81 
85  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
86 
90  inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
91 
95  inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
96 
100  inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
101 
105  inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
106 
110  inline GetEndpointRequest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
111 
115  inline GetEndpointRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
116 
120  inline GetEndpointRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
121 
122  private:
123 
124  Aws::String m_thingArn;
125  bool m_thingArnHasBeenSet;
126 
127  Aws::String m_certificateArn;
128  bool m_certificateArnHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace IoTDeviceAdvisor
133 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest
Definition: GetEndpointRequest.h:26
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::GetEndpointRequest
GetEndpointRequest()
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetEndpointRequest.h:34
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::SetThingArn
void SetThingArn(const Aws::String &value)
Definition: GetEndpointRequest.h:54
AWS_IOTDEVICEADVISOR_API
#define AWS_IOTDEVICEADVISOR_API
Definition: IoTDeviceAdvisor_EXPORTS.h:28
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::GetCertificateArn
const Aws::String & GetCertificateArn() const
Definition: GetEndpointRequest.h:85
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::SetCertificateArn
void SetCertificateArn(const char *value)
Definition: GetEndpointRequest.h:105
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::WithThingArn
GetEndpointRequest & WithThingArn(Aws::String &&value)
Definition: GetEndpointRequest.h:74
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::WithCertificateArn
GetEndpointRequest & WithCertificateArn(Aws::String &&value)
Definition: GetEndpointRequest.h:115
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::CertificateArnHasBeenSet
bool CertificateArnHasBeenSet() const
Definition: GetEndpointRequest.h:90
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::WithCertificateArn
GetEndpointRequest & WithCertificateArn(const char *value)
Definition: GetEndpointRequest.h:120
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::SetCertificateArn
void SetCertificateArn(Aws::String &&value)
Definition: GetEndpointRequest.h:100
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::WithThingArn
GetEndpointRequest & WithThingArn(const char *value)
Definition: GetEndpointRequest.h:79
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::IoTDeviceAdvisor::IoTDeviceAdvisorRequest
Definition: IoTDeviceAdvisorRequest.h:17
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::ThingArnHasBeenSet
bool ThingArnHasBeenSet() const
Definition: GetEndpointRequest.h:49
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::WithThingArn
GetEndpointRequest & WithThingArn(const Aws::String &value)
Definition: GetEndpointRequest.h:69
IoTDeviceAdvisorRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::SetCertificateArn
void SetCertificateArn(const Aws::String &value)
Definition: GetEndpointRequest.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IoTDeviceAdvisor_EXPORTS.h
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::WithCertificateArn
GetEndpointRequest & WithCertificateArn(const Aws::String &value)
Definition: GetEndpointRequest.h:110
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::GetThingArn
const Aws::String & GetThingArn() const
Definition: GetEndpointRequest.h:44
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::SetThingArn
void SetThingArn(Aws::String &&value)
Definition: GetEndpointRequest.h:59
Aws::IoTDeviceAdvisor::Model::GetEndpointRequest::SetThingArn
void SetThingArn(const char *value)
Definition: GetEndpointRequest.h:64