AWS SDK for C++  1.9.156
AWS SDK for C++
PlatformDevice.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECS
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
47  inline const Aws::String& GetId() const{ return m_id; }
48 
54  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 
61  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
62 
68  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
69 
75  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
76 
82  inline PlatformDevice& WithId(const Aws::String& value) { SetId(value); return *this;}
83 
89  inline PlatformDevice& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
90 
96  inline PlatformDevice& WithId(const char* value) { SetId(value); return *this;}
97 
98 
103  inline const PlatformDeviceType& GetType() const{ return m_type; }
104 
109  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
110 
115  inline void SetType(const PlatformDeviceType& value) { m_typeHasBeenSet = true; m_type = value; }
116 
121  inline void SetType(PlatformDeviceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
122 
127  inline PlatformDevice& WithType(const PlatformDeviceType& value) { SetType(value); return *this;}
128 
133  inline PlatformDevice& WithType(PlatformDeviceType&& value) { SetType(std::move(value)); return *this;}
134 
135  private:
136 
137  Aws::String m_id;
138  bool m_idHasBeenSet;
139 
140  PlatformDeviceType m_type;
141  bool m_typeHasBeenSet;
142  };
143 
144 } // namespace Model
145 } // namespace ECS
146 } // namespace Aws
Aws::ECS::Model::PlatformDevice::SetId
void SetId(Aws::String &&value)
Definition: PlatformDevice.h:68
Aws::ECS::Model::PlatformDevice::WithId
PlatformDevice & WithId(const char *value)
Definition: PlatformDevice.h:96
Aws::ECS::Model::PlatformDevice::IdHasBeenSet
bool IdHasBeenSet() const
Definition: PlatformDevice.h:54
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::PlatformDevice::SetType
void SetType(PlatformDeviceType &&value)
Definition: PlatformDevice.h:121
Aws::ECS::Model::PlatformDevice::WithType
PlatformDevice & WithType(PlatformDeviceType &&value)
Definition: PlatformDevice.h:133
Aws::ECS::Model::PlatformDeviceType
PlatformDeviceType
Definition: PlatformDeviceType.h:17
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::PlatformDevice::SetType
void SetType(const PlatformDeviceType &value)
Definition: PlatformDevice.h:115
PlatformDeviceType.h
Aws::ECS::Model::PlatformDevice::PlatformDevice
PlatformDevice()
Aws::ECS::Model::PlatformDevice::GetType
const PlatformDeviceType & GetType() const
Definition: PlatformDevice.h:103
Aws::ECS::Model::PlatformDevice::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ECS::Model::PlatformDevice::GetId
const Aws::String & GetId() const
Definition: PlatformDevice.h:47
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::PlatformDevice::WithType
PlatformDevice & WithType(const PlatformDeviceType &value)
Definition: PlatformDevice.h:127
Aws::ECS::Model::PlatformDevice::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: PlatformDevice.h:109
Aws::ECS::Model::PlatformDevice::WithId
PlatformDevice & WithId(Aws::String &&value)
Definition: PlatformDevice.h:89
Aws::ECS::Model::PlatformDevice::PlatformDevice
PlatformDevice(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::PlatformDevice::SetId
void SetId(const char *value)
Definition: PlatformDevice.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::PlatformDevice::operator=
PlatformDevice & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::PlatformDevice::WithId
PlatformDevice & WithId(const Aws::String &value)
Definition: PlatformDevice.h:82
Aws::ECS::Model::PlatformDevice
Definition: PlatformDevice.h:34
ECS_EXPORTS.h
Aws::ECS::Model::PlatformDevice::SetId
void SetId(const Aws::String &value)
Definition: PlatformDevice.h:61