/** * 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 CloudTrailData { namespace Model { /** *

An event from a source outside of Amazon Web Services that you want * CloudTrail to log.

See Also:

AWS * API Reference

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

The content of an audit event that comes from the event, such as * userIdentity, userAgent, and * eventSource.

*/ inline const Aws::String& GetEventData() const{ return m_eventData; } /** *

The content of an audit event that comes from the event, such as * userIdentity, userAgent, and * eventSource.

*/ inline bool EventDataHasBeenSet() const { return m_eventDataHasBeenSet; } /** *

The content of an audit event that comes from the event, such as * userIdentity, userAgent, and * eventSource.

*/ inline void SetEventData(const Aws::String& value) { m_eventDataHasBeenSet = true; m_eventData = value; } /** *

The content of an audit event that comes from the event, such as * userIdentity, userAgent, and * eventSource.

*/ inline void SetEventData(Aws::String&& value) { m_eventDataHasBeenSet = true; m_eventData = std::move(value); } /** *

The content of an audit event that comes from the event, such as * userIdentity, userAgent, and * eventSource.

*/ inline void SetEventData(const char* value) { m_eventDataHasBeenSet = true; m_eventData.assign(value); } /** *

The content of an audit event that comes from the event, such as * userIdentity, userAgent, and * eventSource.

*/ inline AuditEvent& WithEventData(const Aws::String& value) { SetEventData(value); return *this;} /** *

The content of an audit event that comes from the event, such as * userIdentity, userAgent, and * eventSource.

*/ inline AuditEvent& WithEventData(Aws::String&& value) { SetEventData(std::move(value)); return *this;} /** *

The content of an audit event that comes from the event, such as * userIdentity, userAgent, and * eventSource.

*/ inline AuditEvent& WithEventData(const char* value) { SetEventData(value); return *this;} /** *

A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail * receives the event that matches with the checksum. Calculate the checksum by * running a command like the following:

printf %s $eventdata * | openssl dgst -binary -sha256 | base64

*/ inline const Aws::String& GetEventDataChecksum() const{ return m_eventDataChecksum; } /** *

A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail * receives the event that matches with the checksum. Calculate the checksum by * running a command like the following:

printf %s $eventdata * | openssl dgst -binary -sha256 | base64

*/ inline bool EventDataChecksumHasBeenSet() const { return m_eventDataChecksumHasBeenSet; } /** *

A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail * receives the event that matches with the checksum. Calculate the checksum by * running a command like the following:

printf %s $eventdata * | openssl dgst -binary -sha256 | base64

*/ inline void SetEventDataChecksum(const Aws::String& value) { m_eventDataChecksumHasBeenSet = true; m_eventDataChecksum = value; } /** *

A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail * receives the event that matches with the checksum. Calculate the checksum by * running a command like the following:

printf %s $eventdata * | openssl dgst -binary -sha256 | base64

*/ inline void SetEventDataChecksum(Aws::String&& value) { m_eventDataChecksumHasBeenSet = true; m_eventDataChecksum = std::move(value); } /** *

A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail * receives the event that matches with the checksum. Calculate the checksum by * running a command like the following:

printf %s $eventdata * | openssl dgst -binary -sha256 | base64

*/ inline void SetEventDataChecksum(const char* value) { m_eventDataChecksumHasBeenSet = true; m_eventDataChecksum.assign(value); } /** *

A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail * receives the event that matches with the checksum. Calculate the checksum by * running a command like the following:

printf %s $eventdata * | openssl dgst -binary -sha256 | base64

*/ inline AuditEvent& WithEventDataChecksum(const Aws::String& value) { SetEventDataChecksum(value); return *this;} /** *

A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail * receives the event that matches with the checksum. Calculate the checksum by * running a command like the following:

printf %s $eventdata * | openssl dgst -binary -sha256 | base64

*/ inline AuditEvent& WithEventDataChecksum(Aws::String&& value) { SetEventDataChecksum(std::move(value)); return *this;} /** *

A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail * receives the event that matches with the checksum. Calculate the checksum by * running a command like the following:

printf %s $eventdata * | openssl dgst -binary -sha256 | base64

*/ inline AuditEvent& WithEventDataChecksum(const char* value) { SetEventDataChecksum(value); return *this;} /** *

The original event ID from the source event.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The original event ID from the source event.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The original event ID from the source event.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The original event ID from the source event.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The original event ID from the source event.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The original event ID from the source event.

*/ inline AuditEvent& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The original event ID from the source event.

*/ inline AuditEvent& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The original event ID from the source event.

*/ inline AuditEvent& WithId(const char* value) { SetId(value); return *this;} private: Aws::String m_eventData; bool m_eventDataHasBeenSet = false; Aws::String m_eventDataChecksum; bool m_eventDataChecksumHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace CloudTrailData } // namespace Aws