/** * 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 { /** */ class GetInsightSelectorsRequest : public CloudTrailRequest { public: AWS_CLOUDTRAIL_API GetInsightSelectorsRequest(); // 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 "GetInsightSelectors"; } AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override; AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies the name of the trail or trail ARN. If you specify a trail name, * the string must meet the following requirements:

  • Contain only * ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes * (-)

  • Start with a letter or number, and end with a letter or * number

  • Be between 3 and 128 characters

  • Have * no adjacent periods, underscores or dashes. Names like * my-_namespace and my--namespace are not valid.

    *
  • Not be in IP address format (for example, 192.168.5.4)

  • *

If you specify a trail ARN, it must be in the format:

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

*/ inline const Aws::String& GetTrailName() const{ return m_trailName; } /** *

Specifies the name of the trail or trail ARN. If you specify a trail name, * the string must meet the following requirements:

  • Contain only * ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes * (-)

  • Start with a letter or number, and end with a letter or * number

  • Be between 3 and 128 characters

  • Have * no adjacent periods, underscores or dashes. Names like * my-_namespace and my--namespace are not valid.

    *
  • Not be in IP address format (for example, 192.168.5.4)

  • *

If you specify a trail ARN, it must be in the format:

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

*/ inline bool TrailNameHasBeenSet() const { return m_trailNameHasBeenSet; } /** *

Specifies the name of the trail or trail ARN. If you specify a trail name, * the string must meet the following requirements:

  • Contain only * ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes * (-)

  • Start with a letter or number, and end with a letter or * number

  • Be between 3 and 128 characters

  • Have * no adjacent periods, underscores or dashes. Names like * my-_namespace and my--namespace are not valid.

    *
  • Not be in IP address format (for example, 192.168.5.4)

  • *

If you specify a trail ARN, it must be in the format:

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

*/ inline void SetTrailName(const Aws::String& value) { m_trailNameHasBeenSet = true; m_trailName = value; } /** *

Specifies the name of the trail or trail ARN. If you specify a trail name, * the string must meet the following requirements:

  • Contain only * ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes * (-)

  • Start with a letter or number, and end with a letter or * number

  • Be between 3 and 128 characters

  • Have * no adjacent periods, underscores or dashes. Names like * my-_namespace and my--namespace are not valid.

    *
  • Not be in IP address format (for example, 192.168.5.4)

  • *

If you specify a trail ARN, it must be in the format:

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

*/ inline void SetTrailName(Aws::String&& value) { m_trailNameHasBeenSet = true; m_trailName = std::move(value); } /** *

Specifies the name of the trail or trail ARN. If you specify a trail name, * the string must meet the following requirements:

  • Contain only * ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes * (-)

  • Start with a letter or number, and end with a letter or * number

  • Be between 3 and 128 characters

  • Have * no adjacent periods, underscores or dashes. Names like * my-_namespace and my--namespace are not valid.

    *
  • Not be in IP address format (for example, 192.168.5.4)

  • *

If you specify a trail ARN, it must be in the format:

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

*/ inline void SetTrailName(const char* value) { m_trailNameHasBeenSet = true; m_trailName.assign(value); } /** *

Specifies the name of the trail or trail ARN. If you specify a trail name, * the string must meet the following requirements:

  • Contain only * ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes * (-)

  • Start with a letter or number, and end with a letter or * number

  • Be between 3 and 128 characters

  • Have * no adjacent periods, underscores or dashes. Names like * my-_namespace and my--namespace are not valid.

    *
  • Not be in IP address format (for example, 192.168.5.4)

  • *

If you specify a trail ARN, it must be in the format:

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

*/ inline GetInsightSelectorsRequest& WithTrailName(const Aws::String& value) { SetTrailName(value); return *this;} /** *

Specifies the name of the trail or trail ARN. If you specify a trail name, * the string must meet the following requirements:

  • Contain only * ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes * (-)

  • Start with a letter or number, and end with a letter or * number

  • Be between 3 and 128 characters

  • Have * no adjacent periods, underscores or dashes. Names like * my-_namespace and my--namespace are not valid.

    *
  • Not be in IP address format (for example, 192.168.5.4)

  • *

If you specify a trail ARN, it must be in the format:

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

*/ inline GetInsightSelectorsRequest& WithTrailName(Aws::String&& value) { SetTrailName(std::move(value)); return *this;} /** *

Specifies the name of the trail or trail ARN. If you specify a trail name, * the string must meet the following requirements:

  • Contain only * ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes * (-)

  • Start with a letter or number, and end with a letter or * number

  • Be between 3 and 128 characters

  • Have * no adjacent periods, underscores or dashes. Names like * my-_namespace and my--namespace are not valid.

    *
  • Not be in IP address format (for example, 192.168.5.4)

  • *

If you specify a trail ARN, it must be in the format:

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

*/ inline GetInsightSelectorsRequest& WithTrailName(const char* value) { SetTrailName(value); return *this;} private: Aws::String m_trailName; bool m_trailNameHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws