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

A resource policy helps you to define the IAM entity (for example, an Amazon * Web Services account) that can manage your Systems Manager resources. Currently, * OpsItemGroup is the only resource that supports Systems Manager * resource policies. The resource policy for OpsItemGroup enables * Amazon Web Services accounts to view and interact with OpsCenter operational * work items (OpsItems).

See Also:

AWS * API Reference

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

A policy ID.

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

A policy ID.

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

A policy ID.

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

A policy ID.

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

A policy ID.

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

A policy ID.

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

A policy ID.

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

A policy ID.

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

ID of the current policy version. The hash helps to prevent a situation where * multiple users attempt to overwrite a policy. You must provide this hash when * updating or deleting a policy.

*/ inline const Aws::String& GetPolicyHash() const{ return m_policyHash; } /** *

ID of the current policy version. The hash helps to prevent a situation where * multiple users attempt to overwrite a policy. You must provide this hash when * updating or deleting a policy.

*/ inline bool PolicyHashHasBeenSet() const { return m_policyHashHasBeenSet; } /** *

ID of the current policy version. The hash helps to prevent a situation where * multiple users attempt to overwrite a policy. You must provide this hash when * updating or deleting a policy.

*/ inline void SetPolicyHash(const Aws::String& value) { m_policyHashHasBeenSet = true; m_policyHash = value; } /** *

ID of the current policy version. The hash helps to prevent a situation where * multiple users attempt to overwrite a policy. You must provide this hash when * updating or deleting a policy.

*/ inline void SetPolicyHash(Aws::String&& value) { m_policyHashHasBeenSet = true; m_policyHash = std::move(value); } /** *

ID of the current policy version. The hash helps to prevent a situation where * multiple users attempt to overwrite a policy. You must provide this hash when * updating or deleting a policy.

*/ inline void SetPolicyHash(const char* value) { m_policyHashHasBeenSet = true; m_policyHash.assign(value); } /** *

ID of the current policy version. The hash helps to prevent a situation where * multiple users attempt to overwrite a policy. You must provide this hash when * updating or deleting a policy.

*/ inline GetResourcePoliciesResponseEntry& WithPolicyHash(const Aws::String& value) { SetPolicyHash(value); return *this;} /** *

ID of the current policy version. The hash helps to prevent a situation where * multiple users attempt to overwrite a policy. You must provide this hash when * updating or deleting a policy.

*/ inline GetResourcePoliciesResponseEntry& WithPolicyHash(Aws::String&& value) { SetPolicyHash(std::move(value)); return *this;} /** *

ID of the current policy version. The hash helps to prevent a situation where * multiple users attempt to overwrite a policy. You must provide this hash when * updating or deleting a policy.

*/ inline GetResourcePoliciesResponseEntry& WithPolicyHash(const char* value) { SetPolicyHash(value); return *this;} /** *

A resource policy helps you to define the IAM entity (for example, an Amazon * Web Services account) that can manage your Systems Manager resources. Currently, * OpsItemGroup is the only resource that supports Systems Manager * resource policies. The resource policy for OpsItemGroup enables * Amazon Web Services accounts to view and interact with OpsCenter operational * work items (OpsItems).

*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *

A resource policy helps you to define the IAM entity (for example, an Amazon * Web Services account) that can manage your Systems Manager resources. Currently, * OpsItemGroup is the only resource that supports Systems Manager * resource policies. The resource policy for OpsItemGroup enables * Amazon Web Services accounts to view and interact with OpsCenter operational * work items (OpsItems).

*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *

A resource policy helps you to define the IAM entity (for example, an Amazon * Web Services account) that can manage your Systems Manager resources. Currently, * OpsItemGroup is the only resource that supports Systems Manager * resource policies. The resource policy for OpsItemGroup enables * Amazon Web Services accounts to view and interact with OpsCenter operational * work items (OpsItems).

*/ inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; } /** *

A resource policy helps you to define the IAM entity (for example, an Amazon * Web Services account) that can manage your Systems Manager resources. Currently, * OpsItemGroup is the only resource that supports Systems Manager * resource policies. The resource policy for OpsItemGroup enables * Amazon Web Services accounts to view and interact with OpsCenter operational * work items (OpsItems).

*/ inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *

A resource policy helps you to define the IAM entity (for example, an Amazon * Web Services account) that can manage your Systems Manager resources. Currently, * OpsItemGroup is the only resource that supports Systems Manager * resource policies. The resource policy for OpsItemGroup enables * Amazon Web Services accounts to view and interact with OpsCenter operational * work items (OpsItems).

*/ inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); } /** *

A resource policy helps you to define the IAM entity (for example, an Amazon * Web Services account) that can manage your Systems Manager resources. Currently, * OpsItemGroup is the only resource that supports Systems Manager * resource policies. The resource policy for OpsItemGroup enables * Amazon Web Services accounts to view and interact with OpsCenter operational * work items (OpsItems).

*/ inline GetResourcePoliciesResponseEntry& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *

A resource policy helps you to define the IAM entity (for example, an Amazon * Web Services account) that can manage your Systems Manager resources. Currently, * OpsItemGroup is the only resource that supports Systems Manager * resource policies. The resource policy for OpsItemGroup enables * Amazon Web Services accounts to view and interact with OpsCenter operational * work items (OpsItems).

*/ inline GetResourcePoliciesResponseEntry& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} /** *

A resource policy helps you to define the IAM entity (for example, an Amazon * Web Services account) that can manage your Systems Manager resources. Currently, * OpsItemGroup is the only resource that supports Systems Manager * resource policies. The resource policy for OpsItemGroup enables * Amazon Web Services accounts to view and interact with OpsCenter operational * work items (OpsItems).

*/ inline GetResourcePoliciesResponseEntry& WithPolicy(const char* value) { SetPolicy(value); return *this;} private: Aws::String m_policyId; bool m_policyIdHasBeenSet = false; Aws::String m_policyHash; bool m_policyHashHasBeenSet = false; Aws::String m_policy; bool m_policyHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws