AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeviceSummary.h
1
6#pragma once
7#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.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 SnowDeviceManagement
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SNOWDEVICEMANAGEMENT_API DeviceSummary() = default;
36 AWS_SNOWDEVICEMANAGEMENT_API DeviceSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SNOWDEVICEMANAGEMENT_API DeviceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAssociatedWithJob() const { return m_associatedWithJob; }
46 inline bool AssociatedWithJobHasBeenSet() const { return m_associatedWithJobHasBeenSet; }
47 template<typename AssociatedWithJobT = Aws::String>
48 void SetAssociatedWithJob(AssociatedWithJobT&& value) { m_associatedWithJobHasBeenSet = true; m_associatedWithJob = std::forward<AssociatedWithJobT>(value); }
49 template<typename AssociatedWithJobT = Aws::String>
50 DeviceSummary& WithAssociatedWithJob(AssociatedWithJobT&& value) { SetAssociatedWithJob(std::forward<AssociatedWithJobT>(value)); return *this;}
52
54
57 inline const Aws::String& GetManagedDeviceArn() const { return m_managedDeviceArn; }
58 inline bool ManagedDeviceArnHasBeenSet() const { return m_managedDeviceArnHasBeenSet; }
59 template<typename ManagedDeviceArnT = Aws::String>
60 void SetManagedDeviceArn(ManagedDeviceArnT&& value) { m_managedDeviceArnHasBeenSet = true; m_managedDeviceArn = std::forward<ManagedDeviceArnT>(value); }
61 template<typename ManagedDeviceArnT = Aws::String>
62 DeviceSummary& WithManagedDeviceArn(ManagedDeviceArnT&& value) { SetManagedDeviceArn(std::forward<ManagedDeviceArnT>(value)); return *this;}
64
66
69 inline const Aws::String& GetManagedDeviceId() const { return m_managedDeviceId; }
70 inline bool ManagedDeviceIdHasBeenSet() const { return m_managedDeviceIdHasBeenSet; }
71 template<typename ManagedDeviceIdT = Aws::String>
72 void SetManagedDeviceId(ManagedDeviceIdT&& value) { m_managedDeviceIdHasBeenSet = true; m_managedDeviceId = std::forward<ManagedDeviceIdT>(value); }
73 template<typename ManagedDeviceIdT = Aws::String>
74 DeviceSummary& WithManagedDeviceId(ManagedDeviceIdT&& value) { SetManagedDeviceId(std::forward<ManagedDeviceIdT>(value)); return *this;}
76
78
83 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
87 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 DeviceSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
89 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
90 DeviceSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
91 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
92 }
94 private:
95
96 Aws::String m_associatedWithJob;
97 bool m_associatedWithJobHasBeenSet = false;
98
99 Aws::String m_managedDeviceArn;
100 bool m_managedDeviceArnHasBeenSet = false;
101
102 Aws::String m_managedDeviceId;
103 bool m_managedDeviceIdHasBeenSet = false;
104
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SnowDeviceManagement
111} // namespace Aws
void SetManagedDeviceId(ManagedDeviceIdT &&value)
DeviceSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_SNOWDEVICEMANAGEMENT_API DeviceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DeviceSummary & WithManagedDeviceId(ManagedDeviceIdT &&value)
const Aws::String & GetManagedDeviceId() const
DeviceSummary & WithAssociatedWithJob(AssociatedWithJobT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetManagedDeviceArn() const
const Aws::String & GetAssociatedWithJob() const
void SetAssociatedWithJob(AssociatedWithJobT &&value)
DeviceSummary & WithTags(TagsT &&value)
AWS_SNOWDEVICEMANAGEMENT_API DeviceSummary()=default
DeviceSummary & WithManagedDeviceArn(ManagedDeviceArnT &&value)
AWS_SNOWDEVICEMANAGEMENT_API DeviceSummary(Aws::Utils::Json::JsonView jsonValue)
void SetManagedDeviceArn(ManagedDeviceArnT &&value)
AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue