/** * 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 PutDeliveryDestinationPolicyRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API PutDeliveryDestinationPolicyRequest(); // 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 "PutDeliveryDestinationPolicy"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the delivery destination to assign this policy to.

*/ inline const Aws::String& GetDeliveryDestinationName() const{ return m_deliveryDestinationName; } /** *

The name of the delivery destination to assign this policy to.

*/ inline bool DeliveryDestinationNameHasBeenSet() const { return m_deliveryDestinationNameHasBeenSet; } /** *

The name of the delivery destination to assign this policy to.

*/ inline void SetDeliveryDestinationName(const Aws::String& value) { m_deliveryDestinationNameHasBeenSet = true; m_deliveryDestinationName = value; } /** *

The name of the delivery destination to assign this policy to.

*/ inline void SetDeliveryDestinationName(Aws::String&& value) { m_deliveryDestinationNameHasBeenSet = true; m_deliveryDestinationName = std::move(value); } /** *

The name of the delivery destination to assign this policy to.

*/ inline void SetDeliveryDestinationName(const char* value) { m_deliveryDestinationNameHasBeenSet = true; m_deliveryDestinationName.assign(value); } /** *

The name of the delivery destination to assign this policy to.

*/ inline PutDeliveryDestinationPolicyRequest& WithDeliveryDestinationName(const Aws::String& value) { SetDeliveryDestinationName(value); return *this;} /** *

The name of the delivery destination to assign this policy to.

*/ inline PutDeliveryDestinationPolicyRequest& WithDeliveryDestinationName(Aws::String&& value) { SetDeliveryDestinationName(std::move(value)); return *this;} /** *

The name of the delivery destination to assign this policy to.

*/ inline PutDeliveryDestinationPolicyRequest& WithDeliveryDestinationName(const char* value) { SetDeliveryDestinationName(value); return *this;} /** *

The contents of the policy.

*/ inline const Aws::String& GetDeliveryDestinationPolicy() const{ return m_deliveryDestinationPolicy; } /** *

The contents of the policy.

*/ inline bool DeliveryDestinationPolicyHasBeenSet() const { return m_deliveryDestinationPolicyHasBeenSet; } /** *

The contents of the policy.

*/ inline void SetDeliveryDestinationPolicy(const Aws::String& value) { m_deliveryDestinationPolicyHasBeenSet = true; m_deliveryDestinationPolicy = value; } /** *

The contents of the policy.

*/ inline void SetDeliveryDestinationPolicy(Aws::String&& value) { m_deliveryDestinationPolicyHasBeenSet = true; m_deliveryDestinationPolicy = std::move(value); } /** *

The contents of the policy.

*/ inline void SetDeliveryDestinationPolicy(const char* value) { m_deliveryDestinationPolicyHasBeenSet = true; m_deliveryDestinationPolicy.assign(value); } /** *

The contents of the policy.

*/ inline PutDeliveryDestinationPolicyRequest& WithDeliveryDestinationPolicy(const Aws::String& value) { SetDeliveryDestinationPolicy(value); return *this;} /** *

The contents of the policy.

*/ inline PutDeliveryDestinationPolicyRequest& WithDeliveryDestinationPolicy(Aws::String&& value) { SetDeliveryDestinationPolicy(std::move(value)); return *this;} /** *

The contents of the policy.

*/ inline PutDeliveryDestinationPolicyRequest& WithDeliveryDestinationPolicy(const char* value) { SetDeliveryDestinationPolicy(value); return *this;} private: Aws::String m_deliveryDestinationName; bool m_deliveryDestinationNameHasBeenSet = false; Aws::String m_deliveryDestinationPolicy; bool m_deliveryDestinationPolicyHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws