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

The structure representing the * removePermissionResponse.

See Also:

AWS * API Reference

*/ class RemovePermissionResult { public: AWS_CODEGURUPROFILER_API RemovePermissionResult(); AWS_CODEGURUPROFILER_API RemovePermissionResult(const Aws::AmazonWebServiceResult& result); AWS_CODEGURUPROFILER_API RemovePermissionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The JSON-formatted resource-based policy on the profiling group after the * specified permissions were removed.

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

The JSON-formatted resource-based policy on the profiling group after the * specified permissions were removed.

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

The JSON-formatted resource-based policy on the profiling group after the * specified permissions were removed.

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

The JSON-formatted resource-based policy on the profiling group after the * specified permissions were removed.

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

The JSON-formatted resource-based policy on the profiling group after the * specified permissions were removed.

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

The JSON-formatted resource-based policy on the profiling group after the * specified permissions were removed.

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

The JSON-formatted resource-based policy on the profiling group after the * specified permissions were removed.

*/ inline RemovePermissionResult& WithPolicy(const char* value) { SetPolicy(value); return *this;} /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy after the specified permissions were removed. The updated * JSON-formatted policy is in the policy element of the response. *

*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy after the specified permissions were removed. The updated * JSON-formatted policy is in the policy element of the response. *

*/ inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; } /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy after the specified permissions were removed. The updated * JSON-formatted policy is in the policy element of the response. *

*/ inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); } /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy after the specified permissions were removed. The updated * JSON-formatted policy is in the policy element of the response. *

*/ inline void SetRevisionId(const char* value) { m_revisionId.assign(value); } /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy after the specified permissions were removed. The updated * JSON-formatted policy is in the policy element of the response. *

*/ inline RemovePermissionResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy after the specified permissions were removed. The updated * JSON-formatted policy is in the policy element of the response. *

*/ inline RemovePermissionResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** *

A universally unique identifier (UUID) for the revision of the * resource-based policy after the specified permissions were removed. The updated * JSON-formatted policy is in the policy element of the response. *

*/ inline RemovePermissionResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline RemovePermissionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RemovePermissionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RemovePermissionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_policy; Aws::String m_revisionId; Aws::String m_requestId; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws