This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-cloudtrail/include/aws/cloudtrail/model/DescribeTrailsResult.h

120 lines
5.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/cloudtrail/model/Trail.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudTrail
{
namespace Model
{
/**
* <p>Returns the objects or data listed below if successful. Otherwise, returns an
* error.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrailsResponse">AWS
* API Reference</a></p>
*/
class AWS_CLOUDTRAIL_API DescribeTrailsResult
{
public:
DescribeTrailsResult();
DescribeTrailsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeTrailsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>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,
* <code>SNSTopicName</code> and <code>SNSTopicARN</code> are only returned in
* results if a trail is configured to send SNS notifications. Similarly,
* <code>KMSKeyId</code> only appears in results if a trail's log files are
* encrypted with AWS KMS-managed keys.</p>
*/
inline const Aws::Vector<Trail>& GetTrailList() const{ return m_trailList; }
/**
* <p>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,
* <code>SNSTopicName</code> and <code>SNSTopicARN</code> are only returned in
* results if a trail is configured to send SNS notifications. Similarly,
* <code>KMSKeyId</code> only appears in results if a trail's log files are
* encrypted with AWS KMS-managed keys.</p>
*/
inline void SetTrailList(const Aws::Vector<Trail>& value) { m_trailList = value; }
/**
* <p>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,
* <code>SNSTopicName</code> and <code>SNSTopicARN</code> are only returned in
* results if a trail is configured to send SNS notifications. Similarly,
* <code>KMSKeyId</code> only appears in results if a trail's log files are
* encrypted with AWS KMS-managed keys.</p>
*/
inline void SetTrailList(Aws::Vector<Trail>&& value) { m_trailList = std::move(value); }
/**
* <p>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,
* <code>SNSTopicName</code> and <code>SNSTopicARN</code> are only returned in
* results if a trail is configured to send SNS notifications. Similarly,
* <code>KMSKeyId</code> only appears in results if a trail's log files are
* encrypted with AWS KMS-managed keys.</p>
*/
inline DescribeTrailsResult& WithTrailList(const Aws::Vector<Trail>& value) { SetTrailList(value); return *this;}
/**
* <p>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,
* <code>SNSTopicName</code> and <code>SNSTopicARN</code> are only returned in
* results if a trail is configured to send SNS notifications. Similarly,
* <code>KMSKeyId</code> only appears in results if a trail's log files are
* encrypted with AWS KMS-managed keys.</p>
*/
inline DescribeTrailsResult& WithTrailList(Aws::Vector<Trail>&& value) { SetTrailList(std::move(value)); return *this;}
/**
* <p>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,
* <code>SNSTopicName</code> and <code>SNSTopicARN</code> are only returned in
* results if a trail is configured to send SNS notifications. Similarly,
* <code>KMSKeyId</code> only appears in results if a trail's log files are
* encrypted with AWS KMS-managed keys.</p>
*/
inline DescribeTrailsResult& AddTrailList(const Trail& value) { m_trailList.push_back(value); return *this; }
/**
* <p>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,
* <code>SNSTopicName</code> and <code>SNSTopicARN</code> are only returned in
* results if a trail is configured to send SNS notifications. Similarly,
* <code>KMSKeyId</code> only appears in results if a trail's log files are
* encrypted with AWS KMS-managed keys.</p>
*/
inline DescribeTrailsResult& AddTrailList(Trail&& value) { m_trailList.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Trail> m_trailList;
};
} // namespace Model
} // namespace CloudTrail
} // namespace Aws