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

Information about a CloudTrail trail, including the trail's name, home * Region, and Amazon Resource Name (ARN).

See Also:

AWS * API Reference

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

The ARN of a trail.

*/ inline const Aws::String& GetTrailARN() const{ return m_trailARN; } /** *

The ARN of a trail.

*/ inline bool TrailARNHasBeenSet() const { return m_trailARNHasBeenSet; } /** *

The ARN of a trail.

*/ inline void SetTrailARN(const Aws::String& value) { m_trailARNHasBeenSet = true; m_trailARN = value; } /** *

The ARN of a trail.

*/ inline void SetTrailARN(Aws::String&& value) { m_trailARNHasBeenSet = true; m_trailARN = std::move(value); } /** *

The ARN of a trail.

*/ inline void SetTrailARN(const char* value) { m_trailARNHasBeenSet = true; m_trailARN.assign(value); } /** *

The ARN of a trail.

*/ inline TrailInfo& WithTrailARN(const Aws::String& value) { SetTrailARN(value); return *this;} /** *

The ARN of a trail.

*/ inline TrailInfo& WithTrailARN(Aws::String&& value) { SetTrailARN(std::move(value)); return *this;} /** *

The ARN of a trail.

*/ inline TrailInfo& WithTrailARN(const char* value) { SetTrailARN(value); return *this;} /** *

The name of a trail.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of a trail.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of a trail.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of a trail.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of a trail.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of a trail.

*/ inline TrailInfo& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of a trail.

*/ inline TrailInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of a trail.

*/ inline TrailInfo& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Web Services Region in which a trail was created.

*/ inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; } /** *

The Amazon Web Services Region in which a trail was created.

*/ inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; } /** *

The Amazon Web Services Region in which a trail was created.

*/ inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; } /** *

The Amazon Web Services Region in which a trail was created.

*/ inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); } /** *

The Amazon Web Services Region in which a trail was created.

*/ inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); } /** *

The Amazon Web Services Region in which a trail was created.

*/ inline TrailInfo& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;} /** *

The Amazon Web Services Region in which a trail was created.

*/ inline TrailInfo& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;} /** *

The Amazon Web Services Region in which a trail was created.

*/ inline TrailInfo& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;} private: Aws::String m_trailARN; bool m_trailARNHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_homeRegion; bool m_homeRegionHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws