AWS SDK for C++

AWS SDK for C++ Version 1.11.819

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
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 PlatformDevice& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
63 inline PlatformDeviceType GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(PlatformDeviceType value) {
66 m_typeHasBeenSet = true;
67 m_type = value;
68 }
70 SetType(value);
71 return *this;
72 }
74 private:
75 Aws::String m_id;
76
78 bool m_idHasBeenSet = false;
79 bool m_typeHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace ECS
84} // 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