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

Contains information about CloudTrail access.

See Also:

AWS * API Reference

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

A Trail object that contains settings for a trail.

*/ inline const Aws::Vector& GetTrails() const{ return m_trails; } /** *

A Trail object that contains settings for a trail.

*/ inline bool TrailsHasBeenSet() const { return m_trailsHasBeenSet; } /** *

A Trail object that contains settings for a trail.

*/ inline void SetTrails(const Aws::Vector& value) { m_trailsHasBeenSet = true; m_trails = value; } /** *

A Trail object that contains settings for a trail.

*/ inline void SetTrails(Aws::Vector&& value) { m_trailsHasBeenSet = true; m_trails = std::move(value); } /** *

A Trail object that contains settings for a trail.

*/ inline CloudTrailDetails& WithTrails(const Aws::Vector& value) { SetTrails(value); return *this;} /** *

A Trail object that contains settings for a trail.

*/ inline CloudTrailDetails& WithTrails(Aws::Vector&& value) { SetTrails(std::move(value)); return *this;} /** *

A Trail object that contains settings for a trail.

*/ inline CloudTrailDetails& AddTrails(const Trail& value) { m_trailsHasBeenSet = true; m_trails.push_back(value); return *this; } /** *

A Trail object that contains settings for a trail.

*/ inline CloudTrailDetails& AddTrails(Trail&& value) { m_trailsHasBeenSet = true; m_trails.push_back(std::move(value)); return *this; } /** *

The ARN of the service role that IAM Access Analyzer uses to access your * CloudTrail trail and service last accessed information.

*/ inline const Aws::String& GetAccessRole() const{ return m_accessRole; } /** *

The ARN of the service role that IAM Access Analyzer uses to access your * CloudTrail trail and service last accessed information.

*/ inline bool AccessRoleHasBeenSet() const { return m_accessRoleHasBeenSet; } /** *

The ARN of the service role that IAM Access Analyzer uses to access your * CloudTrail trail and service last accessed information.

*/ inline void SetAccessRole(const Aws::String& value) { m_accessRoleHasBeenSet = true; m_accessRole = value; } /** *

The ARN of the service role that IAM Access Analyzer uses to access your * CloudTrail trail and service last accessed information.

*/ inline void SetAccessRole(Aws::String&& value) { m_accessRoleHasBeenSet = true; m_accessRole = std::move(value); } /** *

The ARN of the service role that IAM Access Analyzer uses to access your * CloudTrail trail and service last accessed information.

*/ inline void SetAccessRole(const char* value) { m_accessRoleHasBeenSet = true; m_accessRole.assign(value); } /** *

The ARN of the service role that IAM Access Analyzer uses to access your * CloudTrail trail and service last accessed information.

*/ inline CloudTrailDetails& WithAccessRole(const Aws::String& value) { SetAccessRole(value); return *this;} /** *

The ARN of the service role that IAM Access Analyzer uses to access your * CloudTrail trail and service last accessed information.

*/ inline CloudTrailDetails& WithAccessRole(Aws::String&& value) { SetAccessRole(std::move(value)); return *this;} /** *

The ARN of the service role that IAM Access Analyzer uses to access your * CloudTrail trail and service last accessed information.

*/ inline CloudTrailDetails& WithAccessRole(const char* value) { SetAccessRole(value); return *this;} /** *

The start of the time range for which IAM Access Analyzer reviews your * CloudTrail events. Events with a timestamp before this time are not considered * to generate a policy.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start of the time range for which IAM Access Analyzer reviews your * CloudTrail events. Events with a timestamp before this time are not considered * to generate a policy.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start of the time range for which IAM Access Analyzer reviews your * CloudTrail events. Events with a timestamp before this time are not considered * to generate a policy.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start of the time range for which IAM Access Analyzer reviews your * CloudTrail events. Events with a timestamp before this time are not considered * to generate a policy.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start of the time range for which IAM Access Analyzer reviews your * CloudTrail events. Events with a timestamp before this time are not considered * to generate a policy.

*/ inline CloudTrailDetails& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start of the time range for which IAM Access Analyzer reviews your * CloudTrail events. Events with a timestamp before this time are not considered * to generate a policy.

*/ inline CloudTrailDetails& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The end of the time range for which IAM Access Analyzer reviews your * CloudTrail events. Events with a timestamp after this time are not considered to * generate a policy. If this is not included in the request, the default value is * the current time.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end of the time range for which IAM Access Analyzer reviews your * CloudTrail events. Events with a timestamp after this time are not considered to * generate a policy. If this is not included in the request, the default value is * the current time.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end of the time range for which IAM Access Analyzer reviews your * CloudTrail events. Events with a timestamp after this time are not considered to * generate a policy. If this is not included in the request, the default value is * the current time.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end of the time range for which IAM Access Analyzer reviews your * CloudTrail events. Events with a timestamp after this time are not considered to * generate a policy. If this is not included in the request, the default value is * the current time.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end of the time range for which IAM Access Analyzer reviews your * CloudTrail events. Events with a timestamp after this time are not considered to * generate a policy. If this is not included in the request, the default value is * the current time.

*/ inline CloudTrailDetails& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end of the time range for which IAM Access Analyzer reviews your * CloudTrail events. Events with a timestamp after this time are not considered to * generate a policy. If this is not included in the request, the default value is * the current time.

*/ inline CloudTrailDetails& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} private: Aws::Vector m_trails; bool m_trailsHasBeenSet = false; Aws::String m_accessRole; bool m_accessRoleHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws