AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssociatedClientDevice.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GreengrassV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GREENGRASSV2_API AssociatedClientDevice() = default;
37 AWS_GREENGRASSV2_API AssociatedClientDevice(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetThingName() const { return m_thingName; }
47 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
48 template<typename ThingNameT = Aws::String>
49 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
50 template<typename ThingNameT = Aws::String>
51 AssociatedClientDevice& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
53
55
59 inline const Aws::Utils::DateTime& GetAssociationTimestamp() const { return m_associationTimestamp; }
60 inline bool AssociationTimestampHasBeenSet() const { return m_associationTimestampHasBeenSet; }
61 template<typename AssociationTimestampT = Aws::Utils::DateTime>
62 void SetAssociationTimestamp(AssociationTimestampT&& value) { m_associationTimestampHasBeenSet = true; m_associationTimestamp = std::forward<AssociationTimestampT>(value); }
63 template<typename AssociationTimestampT = Aws::Utils::DateTime>
64 AssociatedClientDevice& WithAssociationTimestamp(AssociationTimestampT&& value) { SetAssociationTimestamp(std::forward<AssociationTimestampT>(value)); return *this;}
66 private:
67
68 Aws::String m_thingName;
69 bool m_thingNameHasBeenSet = false;
70
71 Aws::Utils::DateTime m_associationTimestamp{};
72 bool m_associationTimestampHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace GreengrassV2
77} // namespace Aws
AssociatedClientDevice & WithAssociationTimestamp(AssociationTimestampT &&value)
AWS_GREENGRASSV2_API AssociatedClientDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASSV2_API AssociatedClientDevice()=default
const Aws::Utils::DateTime & GetAssociationTimestamp() const
AWS_GREENGRASSV2_API AssociatedClientDevice(Aws::Utils::Json::JsonView jsonValue)
AssociatedClientDevice & WithThingName(ThingNameT &&value)
void SetAssociationTimestamp(AssociationTimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue