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

Describes a target for an action.

See Also:

AWS * API Reference

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

The resource type of the target.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

The resource type of the target.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type of the target.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The resource type of the target.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The resource type of the target.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

The resource type of the target.

*/ inline ActionTarget& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

The resource type of the target.

*/ inline ActionTarget& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

The resource type of the target.

*/ inline ActionTarget& WithResourceType(const char* value) { SetResourceType(value); return *this;} private: Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; }; } // namespace Model } // namespace FIS } // namespace Aws