AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
PlatformDevice.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/PlatformDeviceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
30 public:
31 AWS_ECS_API PlatformDevice() = default;
35
37
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 PlatformDevice& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
61 inline PlatformDeviceType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(PlatformDeviceType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72 private:
73 Aws::String m_id;
74
76 bool m_idHasBeenSet = false;
77 bool m_typeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace ECS
82} // namespace Aws
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API PlatformDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API PlatformDevice()=default
PlatformDevice & WithType(PlatformDeviceType value)
AWS_ECS_API PlatformDevice(Aws::Utils::Json::JsonView jsonValue)
PlatformDeviceType GetType() const
PlatformDevice & WithId(IdT &&value)
const Aws::String & GetId() const
void SetType(PlatformDeviceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue