/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { /** *

A structure that contains information about one delivery destination * policy.

See Also:

AWS API * Reference

*/ class Policy { public: AWS_CLOUDWATCHLOGS_API Policy(); AWS_CLOUDWATCHLOGS_API Policy(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Policy& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The contents of the delivery destination policy.

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

The contents of the delivery destination policy.

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

The contents of the delivery destination policy.

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

The contents of the delivery destination policy.

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

The contents of the delivery destination policy.

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

The contents of the delivery destination policy.

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

The contents of the delivery destination policy.

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

The contents of the delivery destination policy.

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