/** * 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 IoTDeviceAdvisor { namespace Model { /** *

Information of a test device. A thing ARN, certificate ARN or device role ARN * is required.

See Also:

AWS * API Reference

*/ class DeviceUnderTest { public: AWS_IOTDEVICEADVISOR_API DeviceUnderTest(); AWS_IOTDEVICEADVISOR_API DeviceUnderTest(Aws::Utils::Json::JsonView jsonValue); AWS_IOTDEVICEADVISOR_API DeviceUnderTest& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTDEVICEADVISOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Lists device's thing ARN.

*/ inline const Aws::String& GetThingArn() const{ return m_thingArn; } /** *

Lists device's thing ARN.

*/ inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; } /** *

Lists device's thing ARN.

*/ inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; } /** *

Lists device's thing ARN.

*/ inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); } /** *

Lists device's thing ARN.

*/ inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); } /** *

Lists device's thing ARN.

*/ inline DeviceUnderTest& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;} /** *

Lists device's thing ARN.

*/ inline DeviceUnderTest& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;} /** *

Lists device's thing ARN.

*/ inline DeviceUnderTest& WithThingArn(const char* value) { SetThingArn(value); return *this;} /** *

Lists device's certificate ARN.

*/ inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; } /** *

Lists device's certificate ARN.

*/ inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; } /** *

Lists device's certificate ARN.

*/ inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; } /** *

Lists device's certificate ARN.

*/ inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); } /** *

Lists device's certificate ARN.

*/ inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); } /** *

Lists device's certificate ARN.

*/ inline DeviceUnderTest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;} /** *

Lists device's certificate ARN.

*/ inline DeviceUnderTest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;} /** *

Lists device's certificate ARN.

*/ inline DeviceUnderTest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;} /** *

Lists device's role ARN.

*/ inline const Aws::String& GetDeviceRoleArn() const{ return m_deviceRoleArn; } /** *

Lists device's role ARN.

*/ inline bool DeviceRoleArnHasBeenSet() const { return m_deviceRoleArnHasBeenSet; } /** *

Lists device's role ARN.

*/ inline void SetDeviceRoleArn(const Aws::String& value) { m_deviceRoleArnHasBeenSet = true; m_deviceRoleArn = value; } /** *

Lists device's role ARN.

*/ inline void SetDeviceRoleArn(Aws::String&& value) { m_deviceRoleArnHasBeenSet = true; m_deviceRoleArn = std::move(value); } /** *

Lists device's role ARN.

*/ inline void SetDeviceRoleArn(const char* value) { m_deviceRoleArnHasBeenSet = true; m_deviceRoleArn.assign(value); } /** *

Lists device's role ARN.

*/ inline DeviceUnderTest& WithDeviceRoleArn(const Aws::String& value) { SetDeviceRoleArn(value); return *this;} /** *

Lists device's role ARN.

*/ inline DeviceUnderTest& WithDeviceRoleArn(Aws::String&& value) { SetDeviceRoleArn(std::move(value)); return *this;} /** *

Lists device's role ARN.

*/ inline DeviceUnderTest& WithDeviceRoleArn(const char* value) { SetDeviceRoleArn(value); return *this;} private: Aws::String m_thingArn; bool m_thingArnHasBeenSet = false; Aws::String m_certificateArn; bool m_certificateArnHasBeenSet = false; Aws::String m_deviceRoleArn; bool m_deviceRoleArnHasBeenSet = false; }; } // namespace Model } // namespace IoTDeviceAdvisor } // namespace Aws