AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DeviceSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SnowDeviceManagement {
21namespace Model {
22
29 public:
30 AWS_SNOWDEVICEMANAGEMENT_API DeviceSummary() = default;
31 AWS_SNOWDEVICEMANAGEMENT_API DeviceSummary(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SNOWDEVICEMANAGEMENT_API DeviceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAssociatedWithJob() const { return m_associatedWithJob; }
40 inline bool AssociatedWithJobHasBeenSet() const { return m_associatedWithJobHasBeenSet; }
41 template <typename AssociatedWithJobT = Aws::String>
42 void SetAssociatedWithJob(AssociatedWithJobT&& value) {
43 m_associatedWithJobHasBeenSet = true;
44 m_associatedWithJob = std::forward<AssociatedWithJobT>(value);
45 }
46 template <typename AssociatedWithJobT = Aws::String>
47 DeviceSummary& WithAssociatedWithJob(AssociatedWithJobT&& value) {
48 SetAssociatedWithJob(std::forward<AssociatedWithJobT>(value));
49 return *this;
50 }
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) {
61 m_managedDeviceArnHasBeenSet = true;
62 m_managedDeviceArn = std::forward<ManagedDeviceArnT>(value);
63 }
64 template <typename ManagedDeviceArnT = Aws::String>
65 DeviceSummary& WithManagedDeviceArn(ManagedDeviceArnT&& value) {
66 SetManagedDeviceArn(std::forward<ManagedDeviceArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetManagedDeviceId() const { return m_managedDeviceId; }
76 inline bool ManagedDeviceIdHasBeenSet() const { return m_managedDeviceIdHasBeenSet; }
77 template <typename ManagedDeviceIdT = Aws::String>
78 void SetManagedDeviceId(ManagedDeviceIdT&& value) {
79 m_managedDeviceIdHasBeenSet = true;
80 m_managedDeviceId = std::forward<ManagedDeviceIdT>(value);
81 }
82 template <typename ManagedDeviceIdT = Aws::String>
83 DeviceSummary& WithManagedDeviceId(ManagedDeviceIdT&& value) {
84 SetManagedDeviceId(std::forward<ManagedDeviceIdT>(value));
85 return *this;
86 }
88
90
95 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 void SetTags(TagsT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags = std::forward<TagsT>(value);
101 }
102 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
103 DeviceSummary& WithTags(TagsT&& value) {
104 SetTags(std::forward<TagsT>(value));
105 return *this;
106 }
107 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
108 DeviceSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_associatedWithJob;
116
117 Aws::String m_managedDeviceArn;
118
119 Aws::String m_managedDeviceId;
120
122 bool m_associatedWithJobHasBeenSet = false;
123 bool m_managedDeviceArnHasBeenSet = false;
124 bool m_managedDeviceIdHasBeenSet = false;
125 bool m_tagsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace SnowDeviceManagement
130} // 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)
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