/** * 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 Synthetics { namespace Model { class AWS_SYNTHETICS_API GetCanaryRunsResult { public: GetCanaryRunsResult(); GetCanaryRunsResult(const Aws::AmazonWebServiceResult& result); GetCanaryRunsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of structures. Each structure contains the details of one of the * retrieved canary runs.

*/ inline const Aws::Vector& GetCanaryRuns() const{ return m_canaryRuns; } /** *

An array of structures. Each structure contains the details of one of the * retrieved canary runs.

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

An array of structures. Each structure contains the details of one of the * retrieved canary runs.

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

An array of structures. Each structure contains the details of one of the * retrieved canary runs.

*/ inline GetCanaryRunsResult& WithCanaryRuns(const Aws::Vector& value) { SetCanaryRuns(value); return *this;} /** *

An array of structures. Each structure contains the details of one of the * retrieved canary runs.

*/ inline GetCanaryRunsResult& WithCanaryRuns(Aws::Vector&& value) { SetCanaryRuns(std::move(value)); return *this;} /** *

An array of structures. Each structure contains the details of one of the * retrieved canary runs.

*/ inline GetCanaryRunsResult& AddCanaryRuns(const CanaryRun& value) { m_canaryRuns.push_back(value); return *this; } /** *

An array of structures. Each structure contains the details of one of the * retrieved canary runs.

*/ inline GetCanaryRunsResult& AddCanaryRuns(CanaryRun&& value) { m_canaryRuns.push_back(std::move(value)); return *this; } /** *

A token that indicates that there is more data available. You can use this * token in a subsequent GetCanaryRuns operation to retrieve the next * set of results.

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

A token that indicates that there is more data available. You can use this * token in a subsequent GetCanaryRuns operation to retrieve the next * set of results.

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

A token that indicates that there is more data available. You can use this * token in a subsequent GetCanaryRuns operation to retrieve the next * set of results.

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

A token that indicates that there is more data available. You can use this * token in a subsequent GetCanaryRuns operation to retrieve the next * set of results.

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

A token that indicates that there is more data available. You can use this * token in a subsequent GetCanaryRuns operation to retrieve the next * set of results.

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

A token that indicates that there is more data available. You can use this * token in a subsequent GetCanaryRuns operation to retrieve the next * set of results.

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

A token that indicates that there is more data available. You can use this * token in a subsequent GetCanaryRuns operation to retrieve the next * set of results.

*/ inline GetCanaryRunsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_canaryRuns; Aws::String m_nextToken; }; } // namespace Model } // namespace Synthetics } // namespace Aws