/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CloudTrail { namespace Model { /** *

The request to CloudTrail to start logging Amazon Web Services API calls for * an account.

See Also:

AWS * API Reference

*/ class StartLoggingRequest : public CloudTrailRequest { public: AWS_CLOUDTRAIL_API StartLoggingRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartLogging"; } AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override; AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies the name or the CloudTrail ARN of the trail for which CloudTrail * logs Amazon Web Services API calls. The following is the format of a trail * ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the name or the CloudTrail ARN of the trail for which CloudTrail * logs Amazon Web Services API calls. The following is the format of a trail * ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the name or the CloudTrail ARN of the trail for which CloudTrail * logs Amazon Web Services API calls. The following is the format of a trail * ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the name or the CloudTrail ARN of the trail for which CloudTrail * logs Amazon Web Services API calls. The following is the format of a trail * ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the name or the CloudTrail ARN of the trail for which CloudTrail * logs Amazon Web Services API calls. The following is the format of a trail * ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the name or the CloudTrail ARN of the trail for which CloudTrail * logs Amazon Web Services API calls. The following is the format of a trail * ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the name or the CloudTrail ARN of the trail for which CloudTrail * logs Amazon Web Services API calls. The following is the format of a trail * ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

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

Specifies the name or the CloudTrail ARN of the trail for which CloudTrail * logs Amazon Web Services API calls. The following is the format of a trail * ARN.

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

*/ inline StartLoggingRequest& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws