This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

217 lines
6.7 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about a device.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/Device">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API Device
{
public:
Device();
Device(Aws::Utils::Json::JsonView jsonValue);
Device& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The ARN of the certificate associated with the device.
*/
inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
/**
* The ARN of the certificate associated with the device.
*/
inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
/**
* The ARN of the certificate associated with the device.
*/
inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
/**
* The ARN of the certificate associated with the device.
*/
inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
/**
* The ARN of the certificate associated with the device.
*/
inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
/**
* The ARN of the certificate associated with the device.
*/
inline Device& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
/**
* The ARN of the certificate associated with the device.
*/
inline Device& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
/**
* The ARN of the certificate associated with the device.
*/
inline Device& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline Device& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline Device& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline Device& WithId(const char* value) { SetId(value); return *this;}
/**
* If true, the device's local shadow will be automatically synced with the cloud.
*/
inline bool GetSyncShadow() const{ return m_syncShadow; }
/**
* If true, the device's local shadow will be automatically synced with the cloud.
*/
inline bool SyncShadowHasBeenSet() const { return m_syncShadowHasBeenSet; }
/**
* If true, the device's local shadow will be automatically synced with the cloud.
*/
inline void SetSyncShadow(bool value) { m_syncShadowHasBeenSet = true; m_syncShadow = value; }
/**
* If true, the device's local shadow will be automatically synced with the cloud.
*/
inline Device& WithSyncShadow(bool value) { SetSyncShadow(value); return *this;}
/**
* The thing ARN of the device.
*/
inline const Aws::String& GetThingArn() const{ return m_thingArn; }
/**
* The thing ARN of the device.
*/
inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
/**
* The thing ARN of the device.
*/
inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
/**
* The thing ARN of the device.
*/
inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
/**
* The thing ARN of the device.
*/
inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
/**
* The thing ARN of the device.
*/
inline Device& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
/**
* The thing ARN of the device.
*/
inline Device& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
/**
* The thing ARN of the device.
*/
inline Device& WithThingArn(const char* value) { SetThingArn(value); return *this;}
private:
Aws::String m_certificateArn;
bool m_certificateArnHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
bool m_syncShadow;
bool m_syncShadowHasBeenSet;
Aws::String m_thingArn;
bool m_thingArnHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws