AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
AssociatedClientDevice.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GreengrassV2 {
21namespace Model {
22
30 public:
31 AWS_GREENGRASSV2_API AssociatedClientDevice() = default;
32 AWS_GREENGRASSV2_API AssociatedClientDevice(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
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>
49 SetThingName(std::forward<ThingNameT>(value));
50 return *this;
51 }
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) {
63 m_associationTimestampHasBeenSet = true;
64 m_associationTimestamp = std::forward<AssociationTimestampT>(value);
65 }
66 template <typename AssociationTimestampT = Aws::Utils::DateTime>
67 AssociatedClientDevice& WithAssociationTimestamp(AssociationTimestampT&& value) {
68 SetAssociationTimestamp(std::forward<AssociationTimestampT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_thingName;
74
75 Aws::Utils::DateTime m_associationTimestamp{};
76 bool m_thingNameHasBeenSet = false;
77 bool m_associationTimestampHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace GreengrassV2
82} // 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