/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT1ClickDevicesService { namespace Model { class AWS_IOT1CLICKDEVICESSERVICE_API DeviceMethod { public: DeviceMethod(); DeviceMethod(Aws::Utils::Json::JsonView jsonValue); DeviceMethod& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of the device, such as "button".

*/ inline const Aws::String& GetDeviceType() const{ return m_deviceType; } /** *

The type of the device, such as "button".

*/ inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; } /** *

The type of the device, such as "button".

*/ inline void SetDeviceType(const Aws::String& value) { m_deviceTypeHasBeenSet = true; m_deviceType = value; } /** *

The type of the device, such as "button".

*/ inline void SetDeviceType(Aws::String&& value) { m_deviceTypeHasBeenSet = true; m_deviceType = std::move(value); } /** *

The type of the device, such as "button".

*/ inline void SetDeviceType(const char* value) { m_deviceTypeHasBeenSet = true; m_deviceType.assign(value); } /** *

The type of the device, such as "button".

*/ inline DeviceMethod& WithDeviceType(const Aws::String& value) { SetDeviceType(value); return *this;} /** *

The type of the device, such as "button".

*/ inline DeviceMethod& WithDeviceType(Aws::String&& value) { SetDeviceType(std::move(value)); return *this;} /** *

The type of the device, such as "button".

*/ inline DeviceMethod& WithDeviceType(const char* value) { SetDeviceType(value); return *this;} /** *

The name of the method applicable to the deviceType.

*/ inline const Aws::String& GetMethodName() const{ return m_methodName; } /** *

The name of the method applicable to the deviceType.

*/ inline bool MethodNameHasBeenSet() const { return m_methodNameHasBeenSet; } /** *

The name of the method applicable to the deviceType.

*/ inline void SetMethodName(const Aws::String& value) { m_methodNameHasBeenSet = true; m_methodName = value; } /** *

The name of the method applicable to the deviceType.

*/ inline void SetMethodName(Aws::String&& value) { m_methodNameHasBeenSet = true; m_methodName = std::move(value); } /** *

The name of the method applicable to the deviceType.

*/ inline void SetMethodName(const char* value) { m_methodNameHasBeenSet = true; m_methodName.assign(value); } /** *

The name of the method applicable to the deviceType.

*/ inline DeviceMethod& WithMethodName(const Aws::String& value) { SetMethodName(value); return *this;} /** *

The name of the method applicable to the deviceType.

*/ inline DeviceMethod& WithMethodName(Aws::String&& value) { SetMethodName(std::move(value)); return *this;} /** *

The name of the method applicable to the deviceType.

*/ inline DeviceMethod& WithMethodName(const char* value) { SetMethodName(value); return *this;} private: Aws::String m_deviceType; bool m_deviceTypeHasBeenSet; Aws::String m_methodName; bool m_methodNameHasBeenSet; }; } // namespace Model } // namespace IoT1ClickDevicesService } // namespace Aws