/** * 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 CloudWatchLogs { namespace Model { /** */ class GetDataProtectionPolicyRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API GetDataProtectionPolicyRequest(); // 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 "GetDataProtectionPolicy"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name or ARN of the log group that contains the data protection policy * that you want to see.

*/ inline const Aws::String& GetLogGroupIdentifier() const{ return m_logGroupIdentifier; } /** *

The name or ARN of the log group that contains the data protection policy * that you want to see.

*/ inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; } /** *

The name or ARN of the log group that contains the data protection policy * that you want to see.

*/ inline void SetLogGroupIdentifier(const Aws::String& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = value; } /** *

The name or ARN of the log group that contains the data protection policy * that you want to see.

*/ inline void SetLogGroupIdentifier(Aws::String&& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = std::move(value); } /** *

The name or ARN of the log group that contains the data protection policy * that you want to see.

*/ inline void SetLogGroupIdentifier(const char* value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier.assign(value); } /** *

The name or ARN of the log group that contains the data protection policy * that you want to see.

*/ inline GetDataProtectionPolicyRequest& WithLogGroupIdentifier(const Aws::String& value) { SetLogGroupIdentifier(value); return *this;} /** *

The name or ARN of the log group that contains the data protection policy * that you want to see.

*/ inline GetDataProtectionPolicyRequest& WithLogGroupIdentifier(Aws::String&& value) { SetLogGroupIdentifier(std::move(value)); return *this;} /** *

The name or ARN of the log group that contains the data protection policy * that you want to see.

*/ inline GetDataProtectionPolicyRequest& WithLogGroupIdentifier(const char* value) { SetLogGroupIdentifier(value); return *this;} private: Aws::String m_logGroupIdentifier; bool m_logGroupIdentifierHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws