/** * 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 SecretsManager { namespace Model { class GetResourcePolicyResult { public: AWS_SECRETSMANAGER_API GetResourcePolicyResult(); AWS_SECRETSMANAGER_API GetResourcePolicyResult(const Aws::AmazonWebServiceResult& result); AWS_SECRETSMANAGER_API GetResourcePolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the secret that the resource-based policy was retrieved for.

*/ inline const Aws::String& GetARN() const{ return m_aRN; } /** *

The ARN of the secret that the resource-based policy was retrieved for.

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

The ARN of the secret that the resource-based policy was retrieved for.

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

The ARN of the secret that the resource-based policy was retrieved for.

*/ inline void SetARN(const char* value) { m_aRN.assign(value); } /** *

The ARN of the secret that the resource-based policy was retrieved for.

*/ inline GetResourcePolicyResult& WithARN(const Aws::String& value) { SetARN(value); return *this;} /** *

The ARN of the secret that the resource-based policy was retrieved for.

*/ inline GetResourcePolicyResult& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} /** *

The ARN of the secret that the resource-based policy was retrieved for.

*/ inline GetResourcePolicyResult& WithARN(const char* value) { SetARN(value); return *this;} /** *

The name of the secret that the resource-based policy was retrieved for.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the secret that the resource-based policy was retrieved for.

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

The name of the secret that the resource-based policy was retrieved for.

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

The name of the secret that the resource-based policy was retrieved for.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the secret that the resource-based policy was retrieved for.

*/ inline GetResourcePolicyResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the secret that the resource-based policy was retrieved for.

*/ inline GetResourcePolicyResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the secret that the resource-based policy was retrieved for.

*/ inline GetResourcePolicyResult& WithName(const char* value) { SetName(value); return *this;} /** *

A JSON-formatted string that contains the permissions policy attached to the * secret. For more information about permissions policies, see Authentication * and access control for Secrets Manager.

*/ inline const Aws::String& GetResourcePolicy() const{ return m_resourcePolicy; } /** *

A JSON-formatted string that contains the permissions policy attached to the * secret. For more information about permissions policies, see Authentication * and access control for Secrets Manager.

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

A JSON-formatted string that contains the permissions policy attached to the * secret. For more information about permissions policies, see Authentication * and access control for Secrets Manager.

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

A JSON-formatted string that contains the permissions policy attached to the * secret. For more information about permissions policies, see Authentication * and access control for Secrets Manager.

*/ inline void SetResourcePolicy(const char* value) { m_resourcePolicy.assign(value); } /** *

A JSON-formatted string that contains the permissions policy attached to the * secret. For more information about permissions policies, see Authentication * and access control for Secrets Manager.

*/ inline GetResourcePolicyResult& WithResourcePolicy(const Aws::String& value) { SetResourcePolicy(value); return *this;} /** *

A JSON-formatted string that contains the permissions policy attached to the * secret. For more information about permissions policies, see Authentication * and access control for Secrets Manager.

*/ inline GetResourcePolicyResult& WithResourcePolicy(Aws::String&& value) { SetResourcePolicy(std::move(value)); return *this;} /** *

A JSON-formatted string that contains the permissions policy attached to the * secret. For more information about permissions policies, see Authentication * and access control for Secrets Manager.

*/ inline GetResourcePolicyResult& WithResourcePolicy(const char* value) { SetResourcePolicy(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 GetResourcePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetResourcePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetResourcePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_aRN; Aws::String m_name; Aws::String m_resourcePolicy; Aws::String m_requestId; }; } // namespace Model } // namespace SecretsManager } // namespace Aws