/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ConfigService { namespace Model { /** *

The value is either a dynamic (resource) value or a static value. You must * select either a dynamic value or a static value.

See Also:

AWS * API Reference

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

The value is dynamic and changes at run-time.

*/ inline const ResourceValue& GetResourceValue() const{ return m_resourceValue; } /** *

The value is dynamic and changes at run-time.

*/ inline bool ResourceValueHasBeenSet() const { return m_resourceValueHasBeenSet; } /** *

The value is dynamic and changes at run-time.

*/ inline void SetResourceValue(const ResourceValue& value) { m_resourceValueHasBeenSet = true; m_resourceValue = value; } /** *

The value is dynamic and changes at run-time.

*/ inline void SetResourceValue(ResourceValue&& value) { m_resourceValueHasBeenSet = true; m_resourceValue = std::move(value); } /** *

The value is dynamic and changes at run-time.

*/ inline RemediationParameterValue& WithResourceValue(const ResourceValue& value) { SetResourceValue(value); return *this;} /** *

The value is dynamic and changes at run-time.

*/ inline RemediationParameterValue& WithResourceValue(ResourceValue&& value) { SetResourceValue(std::move(value)); return *this;} /** *

The value is static and does not change at run-time.

*/ inline const StaticValue& GetStaticValue() const{ return m_staticValue; } /** *

The value is static and does not change at run-time.

*/ inline bool StaticValueHasBeenSet() const { return m_staticValueHasBeenSet; } /** *

The value is static and does not change at run-time.

*/ inline void SetStaticValue(const StaticValue& value) { m_staticValueHasBeenSet = true; m_staticValue = value; } /** *

The value is static and does not change at run-time.

*/ inline void SetStaticValue(StaticValue&& value) { m_staticValueHasBeenSet = true; m_staticValue = std::move(value); } /** *

The value is static and does not change at run-time.

*/ inline RemediationParameterValue& WithStaticValue(const StaticValue& value) { SetStaticValue(value); return *this;} /** *

The value is static and does not change at run-time.

*/ inline RemediationParameterValue& WithStaticValue(StaticValue&& value) { SetStaticValue(std::move(value)); return *this;} private: ResourceValue m_resourceValue; bool m_resourceValueHasBeenSet = false; StaticValue m_staticValue; bool m_staticValueHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws