/** * 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 * putPermissionResponse.

See Also:

AWS * API Reference

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

The JSON-formatted resource-based policy on the profiling group that * includes the added permissions.

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

The JSON-formatted resource-based policy on the profiling group that * includes the added permissions.

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

The JSON-formatted resource-based policy on the profiling group that * includes the added permissions.

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

The JSON-formatted resource-based policy on the profiling group that * includes the added permissions.

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

The JSON-formatted resource-based policy on the profiling group that * includes the added permissions.

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

The JSON-formatted resource-based policy on the profiling group that * includes the added permissions.

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

The JSON-formatted resource-based policy on the profiling group that * includes the added permissions.

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

A universally unique identifier (UUID) for the revision of the * resource-based policy that includes the added permissions. The 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 that includes the added permissions. The 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 that includes the added permissions. The 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 that includes the added permissions. The 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 that includes the added permissions. The JSON-formatted * policy is in the policy element of the response.

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

A universally unique identifier (UUID) for the revision of the * resource-based policy that includes the added permissions. The JSON-formatted * policy is in the policy element of the response.

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

A universally unique identifier (UUID) for the revision of the * resource-based policy that includes the added permissions. The JSON-formatted * policy is in the policy element of the response.

*/ inline PutPermissionResult& 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 PutPermissionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutPermissionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutPermissionResult& 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