AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
PrincipalThingObject.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/ThingPrincipalType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
30 public:
31 AWS_IOT_API PrincipalThingObject() = default;
35
37
40 inline const Aws::String& GetThingName() const { return m_thingName; }
41 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
42 template <typename ThingNameT = Aws::String>
43 void SetThingName(ThingNameT&& value) {
44 m_thingNameHasBeenSet = true;
45 m_thingName = std::forward<ThingNameT>(value);
46 }
47 template <typename ThingNameT = Aws::String>
48 PrincipalThingObject& WithThingName(ThingNameT&& value) {
49 SetThingName(std::forward<ThingNameT>(value));
50 return *this;
51 }
53
55
64 inline ThingPrincipalType GetThingPrincipalType() const { return m_thingPrincipalType; }
65 inline bool ThingPrincipalTypeHasBeenSet() const { return m_thingPrincipalTypeHasBeenSet; }
67 m_thingPrincipalTypeHasBeenSet = true;
68 m_thingPrincipalType = value;
69 }
72 return *this;
73 }
75 private:
76 Aws::String m_thingName;
77
79 bool m_thingNameHasBeenSet = false;
80 bool m_thingPrincipalTypeHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace IoT
85} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetThingPrincipalType(ThingPrincipalType value)
AWS_IOT_API PrincipalThingObject()=default
AWS_IOT_API PrincipalThingObject(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API PrincipalThingObject & operator=(Aws::Utils::Json::JsonView jsonValue)
ThingPrincipalType GetThingPrincipalType() const
PrincipalThingObject & WithThingPrincipalType(ThingPrincipalType value)
PrincipalThingObject & WithThingName(ThingNameT &&value)
const Aws::String & GetThingName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue