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

Parameters to define a mitigation action that changes the state of the device * certificate to inactive.

See Also:

AWS * API Reference

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

The action that you want to apply to the device certificate. The only * supported value is DEACTIVATE.

*/ inline const DeviceCertificateUpdateAction& GetAction() const{ return m_action; } /** *

The action that you want to apply to the device certificate. The only * supported value is DEACTIVATE.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The action that you want to apply to the device certificate. The only * supported value is DEACTIVATE.

*/ inline void SetAction(const DeviceCertificateUpdateAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The action that you want to apply to the device certificate. The only * supported value is DEACTIVATE.

*/ inline void SetAction(DeviceCertificateUpdateAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The action that you want to apply to the device certificate. The only * supported value is DEACTIVATE.

*/ inline UpdateDeviceCertificateParams& WithAction(const DeviceCertificateUpdateAction& value) { SetAction(value); return *this;} /** *

The action that you want to apply to the device certificate. The only * supported value is DEACTIVATE.

*/ inline UpdateDeviceCertificateParams& WithAction(DeviceCertificateUpdateAction&& value) { SetAction(std::move(value)); return *this;} private: DeviceCertificateUpdateAction m_action; bool m_actionHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws