/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudWatchEvidently { namespace Model { class ListSegmentReferencesResult { public: AWS_CLOUDWATCHEVIDENTLY_API ListSegmentReferencesResult(); AWS_CLOUDWATCHEVIDENTLY_API ListSegmentReferencesResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCHEVIDENTLY_API ListSegmentReferencesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The token to use in a subsequent ListSegmentReferences operation * to return the next set of results.

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

The token to use in a subsequent ListSegmentReferences operation * to return the next set of results.

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

The token to use in a subsequent ListSegmentReferences operation * to return the next set of results.

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

The token to use in a subsequent ListSegmentReferences operation * to return the next set of results.

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

The token to use in a subsequent ListSegmentReferences operation * to return the next set of results.

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

The token to use in a subsequent ListSegmentReferences operation * to return the next set of results.

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

The token to use in a subsequent ListSegmentReferences operation * to return the next set of results.

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

An array of structures, where each structure contains information about one * experiment or launch that uses this segment.

*/ inline const Aws::Vector& GetReferencedBy() const{ return m_referencedBy; } /** *

An array of structures, where each structure contains information about one * experiment or launch that uses this segment.

*/ inline void SetReferencedBy(const Aws::Vector& value) { m_referencedBy = value; } /** *

An array of structures, where each structure contains information about one * experiment or launch that uses this segment.

*/ inline void SetReferencedBy(Aws::Vector&& value) { m_referencedBy = std::move(value); } /** *

An array of structures, where each structure contains information about one * experiment or launch that uses this segment.

*/ inline ListSegmentReferencesResult& WithReferencedBy(const Aws::Vector& value) { SetReferencedBy(value); return *this;} /** *

An array of structures, where each structure contains information about one * experiment or launch that uses this segment.

*/ inline ListSegmentReferencesResult& WithReferencedBy(Aws::Vector&& value) { SetReferencedBy(std::move(value)); return *this;} /** *

An array of structures, where each structure contains information about one * experiment or launch that uses this segment.

*/ inline ListSegmentReferencesResult& AddReferencedBy(const RefResource& value) { m_referencedBy.push_back(value); return *this; } /** *

An array of structures, where each structure contains information about one * experiment or launch that uses this segment.

*/ inline ListSegmentReferencesResult& AddReferencedBy(RefResource&& value) { m_referencedBy.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ListSegmentReferencesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListSegmentReferencesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListSegmentReferencesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nextToken; Aws::Vector m_referencedBy; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws