/** * 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 CloudWatchEvidently { namespace Model { /** */ class GetSegmentRequest : public CloudWatchEvidentlyRequest { public: AWS_CLOUDWATCHEVIDENTLY_API GetSegmentRequest(); // 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 "GetSegment"; } AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override; /** *

The ARN of the segment to return information for.

*/ inline const Aws::String& GetSegment() const{ return m_segment; } /** *

The ARN of the segment to return information for.

*/ inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; } /** *

The ARN of the segment to return information for.

*/ inline void SetSegment(const Aws::String& value) { m_segmentHasBeenSet = true; m_segment = value; } /** *

The ARN of the segment to return information for.

*/ inline void SetSegment(Aws::String&& value) { m_segmentHasBeenSet = true; m_segment = std::move(value); } /** *

The ARN of the segment to return information for.

*/ inline void SetSegment(const char* value) { m_segmentHasBeenSet = true; m_segment.assign(value); } /** *

The ARN of the segment to return information for.

*/ inline GetSegmentRequest& WithSegment(const Aws::String& value) { SetSegment(value); return *this;} /** *

The ARN of the segment to return information for.

*/ inline GetSegmentRequest& WithSegment(Aws::String&& value) { SetSegment(std::move(value)); return *this;} /** *

The ARN of the segment to return information for.

*/ inline GetSegmentRequest& WithSegment(const char* value) { SetSegment(value); return *this;} private: Aws::String m_segment; bool m_segmentHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws