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

The service control policies (SCP) action definition details.

See * Also:

AWS * API Reference

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

The policy ID attached.

*/ inline const Aws::String& GetPolicyId() const{ return m_policyId; } /** *

The policy ID attached.

*/ inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; } /** *

The policy ID attached.

*/ inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; } /** *

The policy ID attached.

*/ inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); } /** *

The policy ID attached.

*/ inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); } /** *

The policy ID attached.

*/ inline ScpActionDefinition& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;} /** *

The policy ID attached.

*/ inline ScpActionDefinition& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;} /** *

The policy ID attached.

*/ inline ScpActionDefinition& WithPolicyId(const char* value) { SetPolicyId(value); return *this;} /** *

A list of target IDs.

*/ inline const Aws::Vector& GetTargetIds() const{ return m_targetIds; } /** *

A list of target IDs.

*/ inline bool TargetIdsHasBeenSet() const { return m_targetIdsHasBeenSet; } /** *

A list of target IDs.

*/ inline void SetTargetIds(const Aws::Vector& value) { m_targetIdsHasBeenSet = true; m_targetIds = value; } /** *

A list of target IDs.

*/ inline void SetTargetIds(Aws::Vector&& value) { m_targetIdsHasBeenSet = true; m_targetIds = std::move(value); } /** *

A list of target IDs.

*/ inline ScpActionDefinition& WithTargetIds(const Aws::Vector& value) { SetTargetIds(value); return *this;} /** *

A list of target IDs.

*/ inline ScpActionDefinition& WithTargetIds(Aws::Vector&& value) { SetTargetIds(std::move(value)); return *this;} /** *

A list of target IDs.

*/ inline ScpActionDefinition& AddTargetIds(const Aws::String& value) { m_targetIdsHasBeenSet = true; m_targetIds.push_back(value); return *this; } /** *

A list of target IDs.

*/ inline ScpActionDefinition& AddTargetIds(Aws::String&& value) { m_targetIdsHasBeenSet = true; m_targetIds.push_back(std::move(value)); return *this; } /** *

A list of target IDs.

*/ inline ScpActionDefinition& AddTargetIds(const char* value) { m_targetIdsHasBeenSet = true; m_targetIds.push_back(value); return *this; } private: Aws::String m_policyId; bool m_policyIdHasBeenSet = false; Aws::Vector m_targetIds; bool m_targetIdsHasBeenSet = false; }; } // namespace Model } // namespace Budgets } // namespace Aws