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

Returns the objects or data listed below if successful. Otherwise, returns an * error.

See Also:

AWS * API Reference

*/ class AWS_CLOUDTRAIL_API DescribeTrailsResult { public: DescribeTrailsResult(); DescribeTrailsResult(const Aws::AmazonWebServiceResult& result); DescribeTrailsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The list of trail objects. Trail objects with string values are only returned * if values for the objects exist in a trail's configuration. For example, * SNSTopicName and SNSTopicARN are only returned in * results if a trail is configured to send SNS notifications. Similarly, * KMSKeyId only appears in results if a trail's log files are * encrypted with AWS KMS-managed keys.

*/ inline const Aws::Vector& GetTrailList() const{ return m_trailList; } /** *

The list of trail objects. Trail objects with string values are only returned * if values for the objects exist in a trail's configuration. For example, * SNSTopicName and SNSTopicARN are only returned in * results if a trail is configured to send SNS notifications. Similarly, * KMSKeyId only appears in results if a trail's log files are * encrypted with AWS KMS-managed keys.

*/ inline void SetTrailList(const Aws::Vector& value) { m_trailList = value; } /** *

The list of trail objects. Trail objects with string values are only returned * if values for the objects exist in a trail's configuration. For example, * SNSTopicName and SNSTopicARN are only returned in * results if a trail is configured to send SNS notifications. Similarly, * KMSKeyId only appears in results if a trail's log files are * encrypted with AWS KMS-managed keys.

*/ inline void SetTrailList(Aws::Vector&& value) { m_trailList = std::move(value); } /** *

The list of trail objects. Trail objects with string values are only returned * if values for the objects exist in a trail's configuration. For example, * SNSTopicName and SNSTopicARN are only returned in * results if a trail is configured to send SNS notifications. Similarly, * KMSKeyId only appears in results if a trail's log files are * encrypted with AWS KMS-managed keys.

*/ inline DescribeTrailsResult& WithTrailList(const Aws::Vector& value) { SetTrailList(value); return *this;} /** *

The list of trail objects. Trail objects with string values are only returned * if values for the objects exist in a trail's configuration. For example, * SNSTopicName and SNSTopicARN are only returned in * results if a trail is configured to send SNS notifications. Similarly, * KMSKeyId only appears in results if a trail's log files are * encrypted with AWS KMS-managed keys.

*/ inline DescribeTrailsResult& WithTrailList(Aws::Vector&& value) { SetTrailList(std::move(value)); return *this;} /** *

The list of trail objects. Trail objects with string values are only returned * if values for the objects exist in a trail's configuration. For example, * SNSTopicName and SNSTopicARN are only returned in * results if a trail is configured to send SNS notifications. Similarly, * KMSKeyId only appears in results if a trail's log files are * encrypted with AWS KMS-managed keys.

*/ inline DescribeTrailsResult& AddTrailList(const Trail& value) { m_trailList.push_back(value); return *this; } /** *

The list of trail objects. Trail objects with string values are only returned * if values for the objects exist in a trail's configuration. For example, * SNSTopicName and SNSTopicARN are only returned in * results if a trail is configured to send SNS notifications. Similarly, * KMSKeyId only appears in results if a trail's log files are * encrypted with AWS KMS-managed keys.

*/ inline DescribeTrailsResult& AddTrailList(Trail&& value) { m_trailList.push_back(std::move(value)); return *this; } private: Aws::Vector m_trailList; }; } // namespace Model } // namespace CloudTrail } // namespace Aws