/** * 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 SNS { namespace Model { /** */ class PutDataProtectionPolicyRequest : public SNSRequest { public: AWS_SNS_API PutDataProtectionPolicyRequest(); // 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 "PutDataProtectionPolicy"; } AWS_SNS_API Aws::String SerializePayload() const override; protected: AWS_SNS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ARN of the topic whose DataProtectionPolicy you want to add * or update.

For more information about ARNs, see Amazon * Resource Names (ARNs) in the Amazon Web Services General Reference.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The ARN of the topic whose DataProtectionPolicy you want to add * or update.

For more information about ARNs, see Amazon * Resource Names (ARNs) in the Amazon Web Services General Reference.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The ARN of the topic whose DataProtectionPolicy you want to add * or update.

For more information about ARNs, see Amazon * Resource Names (ARNs) in the Amazon Web Services General Reference.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The ARN of the topic whose DataProtectionPolicy you want to add * or update.

For more information about ARNs, see Amazon * Resource Names (ARNs) in the Amazon Web Services General Reference.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The ARN of the topic whose DataProtectionPolicy you want to add * or update.

For more information about ARNs, see Amazon * Resource Names (ARNs) in the Amazon Web Services General Reference.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The ARN of the topic whose DataProtectionPolicy you want to add * or update.

For more information about ARNs, see Amazon * Resource Names (ARNs) in the Amazon Web Services General Reference.

*/ inline PutDataProtectionPolicyRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The ARN of the topic whose DataProtectionPolicy you want to add * or update.

For more information about ARNs, see Amazon * Resource Names (ARNs) in the Amazon Web Services General Reference.

*/ inline PutDataProtectionPolicyRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The ARN of the topic whose DataProtectionPolicy you want to add * or update.

For more information about ARNs, see Amazon * Resource Names (ARNs) in the Amazon Web Services General Reference.

*/ inline PutDataProtectionPolicyRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The JSON serialization of the topic's DataProtectionPolicy.

*

The DataProtectionPolicy must be in JSON string format.

*

Length Constraints: Maximum length of 30,720.

*/ inline const Aws::String& GetDataProtectionPolicy() const{ return m_dataProtectionPolicy; } /** *

The JSON serialization of the topic's DataProtectionPolicy.

*

The DataProtectionPolicy must be in JSON string format.

*

Length Constraints: Maximum length of 30,720.

*/ inline bool DataProtectionPolicyHasBeenSet() const { return m_dataProtectionPolicyHasBeenSet; } /** *

The JSON serialization of the topic's DataProtectionPolicy.

*

The DataProtectionPolicy must be in JSON string format.

*

Length Constraints: Maximum length of 30,720.

*/ inline void SetDataProtectionPolicy(const Aws::String& value) { m_dataProtectionPolicyHasBeenSet = true; m_dataProtectionPolicy = value; } /** *

The JSON serialization of the topic's DataProtectionPolicy.

*

The DataProtectionPolicy must be in JSON string format.

*

Length Constraints: Maximum length of 30,720.

*/ inline void SetDataProtectionPolicy(Aws::String&& value) { m_dataProtectionPolicyHasBeenSet = true; m_dataProtectionPolicy = std::move(value); } /** *

The JSON serialization of the topic's DataProtectionPolicy.

*

The DataProtectionPolicy must be in JSON string format.

*

Length Constraints: Maximum length of 30,720.

*/ inline void SetDataProtectionPolicy(const char* value) { m_dataProtectionPolicyHasBeenSet = true; m_dataProtectionPolicy.assign(value); } /** *

The JSON serialization of the topic's DataProtectionPolicy.

*

The DataProtectionPolicy must be in JSON string format.

*

Length Constraints: Maximum length of 30,720.

*/ inline PutDataProtectionPolicyRequest& WithDataProtectionPolicy(const Aws::String& value) { SetDataProtectionPolicy(value); return *this;} /** *

The JSON serialization of the topic's DataProtectionPolicy.

*

The DataProtectionPolicy must be in JSON string format.

*

Length Constraints: Maximum length of 30,720.

*/ inline PutDataProtectionPolicyRequest& WithDataProtectionPolicy(Aws::String&& value) { SetDataProtectionPolicy(std::move(value)); return *this;} /** *

The JSON serialization of the topic's DataProtectionPolicy.

*

The DataProtectionPolicy must be in JSON string format.

*

Length Constraints: Maximum length of 30,720.

*/ inline PutDataProtectionPolicyRequest& WithDataProtectionPolicy(const char* value) { SetDataProtectionPolicy(value); return *this;} private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::String m_dataProtectionPolicy; bool m_dataProtectionPolicyHasBeenSet = false; }; } // namespace Model } // namespace SNS } // namespace Aws