AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttachThingPrincipalRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace IoT
15{
16namespace Model
17{
18
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 "AttachThingPrincipal"; }
35
36 AWS_IOT_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetThingName() const{ return m_thingName; }
46 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
47 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
48 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
49 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
50 inline AttachThingPrincipalRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
51 inline AttachThingPrincipalRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
52 inline AttachThingPrincipalRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
54
56
60 inline const Aws::String& GetPrincipal() const{ return m_principal; }
61 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
62 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
63 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
64 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
65 inline AttachThingPrincipalRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
66 inline AttachThingPrincipalRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
67 inline AttachThingPrincipalRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
69 private:
70
71 Aws::String m_thingName;
72 bool m_thingNameHasBeenSet = false;
73
74 Aws::String m_principal;
75 bool m_principalHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace IoT
80} // namespace Aws
AttachThingPrincipalRequest & WithThingName(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
AttachThingPrincipalRequest & WithPrincipal(const Aws::String &value)
AttachThingPrincipalRequest & WithThingName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AttachThingPrincipalRequest & WithPrincipal(Aws::String &&value)
AttachThingPrincipalRequest & WithPrincipal(const char *value)
AttachThingPrincipalRequest & WithThingName(const char *value)
AWS_IOT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String