/**
* 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 CA
* certificate to inactive.
See Also:
AWS
* API Reference
*/
class UpdateCACertificateParams
{
public:
AWS_IOT_API UpdateCACertificateParams();
AWS_IOT_API UpdateCACertificateParams(Aws::Utils::Json::JsonView jsonValue);
AWS_IOT_API UpdateCACertificateParams& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The action that you want to apply to the CA certificate. The only supported
* value is DEACTIVATE
.
*/
inline const CACertificateUpdateAction& GetAction() const{ return m_action; }
/**
* The action that you want to apply to the CA certificate. The only supported
* value is DEACTIVATE
.
*/
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
/**
* The action that you want to apply to the CA certificate. The only supported
* value is DEACTIVATE
.
*/
inline void SetAction(const CACertificateUpdateAction& value) { m_actionHasBeenSet = true; m_action = value; }
/**
* The action that you want to apply to the CA certificate. The only supported
* value is DEACTIVATE
.
*/
inline void SetAction(CACertificateUpdateAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
/**
* The action that you want to apply to the CA certificate. The only supported
* value is DEACTIVATE
.
*/
inline UpdateCACertificateParams& WithAction(const CACertificateUpdateAction& value) { SetAction(value); return *this;}
/**
* The action that you want to apply to the CA certificate. The only supported
* value is DEACTIVATE
.
*/
inline UpdateCACertificateParams& WithAction(CACertificateUpdateAction&& value) { SetAction(std::move(value)); return *this;}
private:
CACertificateUpdateAction m_action;
bool m_actionHasBeenSet = false;
};
} // namespace Model
} // namespace IoT
} // namespace Aws