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

The resource policy that allows Incident Manager to perform actions on * resources on your behalf.

See Also:

AWS * API Reference

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

The JSON blob that describes the policy.

*/ inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; } /** *

The JSON blob that describes the policy.

*/ inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; } /** *

The JSON blob that describes the policy.

*/ inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; } /** *

The JSON blob that describes the policy.

*/ inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); } /** *

The JSON blob that describes the policy.

*/ inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); } /** *

The JSON blob that describes the policy.

*/ inline ResourcePolicy& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;} /** *

The JSON blob that describes the policy.

*/ inline ResourcePolicy& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;} /** *

The JSON blob that describes the policy.

*/ inline ResourcePolicy& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;} /** *

The ID of the resource policy.

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

The ID of the resource policy.

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

The ID of the resource policy.

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

The ID of the resource policy.

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

The ID of the resource policy.

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

The ID of the resource policy.

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

The ID of the resource policy.

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

The ID of the resource policy.

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

The Amazon Web Services Region that policy allows resources to be used * in.

*/ inline const Aws::String& GetRamResourceShareRegion() const{ return m_ramResourceShareRegion; } /** *

The Amazon Web Services Region that policy allows resources to be used * in.

*/ inline bool RamResourceShareRegionHasBeenSet() const { return m_ramResourceShareRegionHasBeenSet; } /** *

The Amazon Web Services Region that policy allows resources to be used * in.

*/ inline void SetRamResourceShareRegion(const Aws::String& value) { m_ramResourceShareRegionHasBeenSet = true; m_ramResourceShareRegion = value; } /** *

The Amazon Web Services Region that policy allows resources to be used * in.

*/ inline void SetRamResourceShareRegion(Aws::String&& value) { m_ramResourceShareRegionHasBeenSet = true; m_ramResourceShareRegion = std::move(value); } /** *

The Amazon Web Services Region that policy allows resources to be used * in.

*/ inline void SetRamResourceShareRegion(const char* value) { m_ramResourceShareRegionHasBeenSet = true; m_ramResourceShareRegion.assign(value); } /** *

The Amazon Web Services Region that policy allows resources to be used * in.

*/ inline ResourcePolicy& WithRamResourceShareRegion(const Aws::String& value) { SetRamResourceShareRegion(value); return *this;} /** *

The Amazon Web Services Region that policy allows resources to be used * in.

*/ inline ResourcePolicy& WithRamResourceShareRegion(Aws::String&& value) { SetRamResourceShareRegion(std::move(value)); return *this;} /** *

The Amazon Web Services Region that policy allows resources to be used * in.

*/ inline ResourcePolicy& WithRamResourceShareRegion(const char* value) { SetRamResourceShareRegion(value); return *this;} private: Aws::String m_policyDocument; bool m_policyDocumentHasBeenSet = false; Aws::String m_policyId; bool m_policyIdHasBeenSet = false; Aws::String m_ramResourceShareRegion; bool m_ramResourceShareRegionHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws