/**
* 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 adds a blank policy to restrict
* permissions.
See Also:
AWS
* API Reference
*/
class ReplaceDefaultPolicyVersionParams
{
public:
AWS_IOT_API ReplaceDefaultPolicyVersionParams();
AWS_IOT_API ReplaceDefaultPolicyVersionParams(Aws::Utils::Json::JsonView jsonValue);
AWS_IOT_API ReplaceDefaultPolicyVersionParams& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The name of the template to be applied. The only supported value is
* BLANK_POLICY
.
*/
inline const PolicyTemplateName& GetTemplateName() const{ return m_templateName; }
/**
* The name of the template to be applied. The only supported value is
* BLANK_POLICY
.
*/
inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
/**
* The name of the template to be applied. The only supported value is
* BLANK_POLICY
.
*/
inline void SetTemplateName(const PolicyTemplateName& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
/**
* The name of the template to be applied. The only supported value is
* BLANK_POLICY
.
*/
inline void SetTemplateName(PolicyTemplateName&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
/**
* The name of the template to be applied. The only supported value is
* BLANK_POLICY
.
*/
inline ReplaceDefaultPolicyVersionParams& WithTemplateName(const PolicyTemplateName& value) { SetTemplateName(value); return *this;}
/**
* The name of the template to be applied. The only supported value is
* BLANK_POLICY
.
*/
inline ReplaceDefaultPolicyVersionParams& WithTemplateName(PolicyTemplateName&& value) { SetTemplateName(std::move(value)); return *this;}
private:
PolicyTemplateName m_templateName;
bool m_templateNameHasBeenSet = false;
};
} // namespace Model
} // namespace IoT
} // namespace Aws