/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace SecretsManager { namespace Model { /** */ class ValidateResourcePolicyRequest : public SecretsManagerRequest { public: AWS_SECRETSMANAGER_API ValidateResourcePolicyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ValidateResourcePolicy"; } AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override; AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

This field is reserved for internal use.

*/ inline const Aws::String& GetSecretId() const{ return m_secretId; } /** *

This field is reserved for internal use.

*/ inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; } /** *

This field is reserved for internal use.

*/ inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; } /** *

This field is reserved for internal use.

*/ inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); } /** *

This field is reserved for internal use.

*/ inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); } /** *

This field is reserved for internal use.

*/ inline ValidateResourcePolicyRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;} /** *

This field is reserved for internal use.

*/ inline ValidateResourcePolicyRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;} /** *

This field is reserved for internal use.

*/ inline ValidateResourcePolicyRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;} /** *

A JSON-formatted string that contains an Amazon Web Services resource-based * policy. The policy in the string identifies who can access or manage this secret * and its versions. For example policies, see Permissions * policy examples.

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

A JSON-formatted string that contains an Amazon Web Services resource-based * policy. The policy in the string identifies who can access or manage this secret * and its versions. For example policies, see Permissions * policy examples.

*/ inline bool ResourcePolicyHasBeenSet() const { return m_resourcePolicyHasBeenSet; } /** *

A JSON-formatted string that contains an Amazon Web Services resource-based * policy. The policy in the string identifies who can access or manage this secret * and its versions. For example policies, see Permissions * policy examples.

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

A JSON-formatted string that contains an Amazon Web Services resource-based * policy. The policy in the string identifies who can access or manage this secret * and its versions. For example policies, see Permissions * policy examples.

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

A JSON-formatted string that contains an Amazon Web Services resource-based * policy. The policy in the string identifies who can access or manage this secret * and its versions. For example policies, see Permissions * policy examples.

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

A JSON-formatted string that contains an Amazon Web Services resource-based * policy. The policy in the string identifies who can access or manage this secret * and its versions. For example policies, see Permissions * policy examples.

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

A JSON-formatted string that contains an Amazon Web Services resource-based * policy. The policy in the string identifies who can access or manage this secret * and its versions. For example policies, see Permissions * policy examples.

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

A JSON-formatted string that contains an Amazon Web Services resource-based * policy. The policy in the string identifies who can access or manage this secret * and its versions. For example policies, see Permissions * policy examples.

*/ inline ValidateResourcePolicyRequest& WithResourcePolicy(const char* value) { SetResourcePolicy(value); return *this;} private: Aws::String m_secretId; bool m_secretIdHasBeenSet = false; Aws::String m_resourcePolicy; bool m_resourcePolicyHasBeenSet = false; }; } // namespace Model } // namespace SecretsManager } // namespace Aws