/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace CloudWatchEvidently { namespace Model { /** */ class ListSegmentReferencesRequest : public CloudWatchEvidentlyRequest { public: AWS_CLOUDWATCHEVIDENTLY_API ListSegmentReferencesRequest(); // 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 "ListSegmentReferences"; } AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHEVIDENTLY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The maximum number of results to include in the response. If you omit this, * the default of 50 is used.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to include in the response. If you omit this, * the default of 50 is used.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to include in the response. If you omit this, * the default of 50 is used.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to include in the response. If you omit this, * the default of 50 is used.

*/ inline ListSegmentReferencesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The token to use when requesting the next set of results. You received this * token from a previous ListSegmentReferences operation.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token to use when requesting the next set of results. You received this * token from a previous ListSegmentReferences operation.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token to use when requesting the next set of results. You received this * token from a previous ListSegmentReferences operation.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token to use when requesting the next set of results. You received this * token from a previous ListSegmentReferences operation.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token to use when requesting the next set of results. You received this * token from a previous ListSegmentReferences operation.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token to use when requesting the next set of results. You received this * token from a previous ListSegmentReferences operation.

*/ inline ListSegmentReferencesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token to use when requesting the next set of results. You received this * token from a previous ListSegmentReferences operation.

*/ inline ListSegmentReferencesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token to use when requesting the next set of results. You received this * token from a previous ListSegmentReferences operation.

*/ inline ListSegmentReferencesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The ARN of the segment that you want to view information for.

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

The ARN of the segment that you want to view information for.

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

The ARN of the segment that you want to view information for.

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

The ARN of the segment that you want to view information for.

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

The ARN of the segment that you want to view information for.

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

The ARN of the segment that you want to view information for.

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

The ARN of the segment that you want to view information for.

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

The ARN of the segment that you want to view information for.

*/ inline ListSegmentReferencesRequest& WithSegment(const char* value) { SetSegment(value); return *this;} /** *

Specifies whether to return information about launches or experiments that * use this segment.

*/ inline const SegmentReferenceResourceType& GetType() const{ return m_type; } /** *

Specifies whether to return information about launches or experiments that * use this segment.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Specifies whether to return information about launches or experiments that * use this segment.

*/ inline void SetType(const SegmentReferenceResourceType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Specifies whether to return information about launches or experiments that * use this segment.

*/ inline void SetType(SegmentReferenceResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Specifies whether to return information about launches or experiments that * use this segment.

*/ inline ListSegmentReferencesRequest& WithType(const SegmentReferenceResourceType& value) { SetType(value); return *this;} /** *

Specifies whether to return information about launches or experiments that * use this segment.

*/ inline ListSegmentReferencesRequest& WithType(SegmentReferenceResourceType&& value) { SetType(std::move(value)); return *this;} private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_segment; bool m_segmentHasBeenSet = false; SegmentReferenceResourceType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws