/** * 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 CodeCommit { namespace Model { /** *

Represents the output of a test repository triggers operation.

See * Also:

AWS * API Reference

*/ class TestRepositoryTriggersResult { public: AWS_CODECOMMIT_API TestRepositoryTriggersResult(); AWS_CODECOMMIT_API TestRepositoryTriggersResult(const Aws::AmazonWebServiceResult& result); AWS_CODECOMMIT_API TestRepositoryTriggersResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The list of triggers that were successfully tested. This list provides the * names of the triggers that were successfully tested, separated by commas.

*/ inline const Aws::Vector& GetSuccessfulExecutions() const{ return m_successfulExecutions; } /** *

The list of triggers that were successfully tested. This list provides the * names of the triggers that were successfully tested, separated by commas.

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

The list of triggers that were successfully tested. This list provides the * names of the triggers that were successfully tested, separated by commas.

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

The list of triggers that were successfully tested. This list provides the * names of the triggers that were successfully tested, separated by commas.

*/ inline TestRepositoryTriggersResult& WithSuccessfulExecutions(const Aws::Vector& value) { SetSuccessfulExecutions(value); return *this;} /** *

The list of triggers that were successfully tested. This list provides the * names of the triggers that were successfully tested, separated by commas.

*/ inline TestRepositoryTriggersResult& WithSuccessfulExecutions(Aws::Vector&& value) { SetSuccessfulExecutions(std::move(value)); return *this;} /** *

The list of triggers that were successfully tested. This list provides the * names of the triggers that were successfully tested, separated by commas.

*/ inline TestRepositoryTriggersResult& AddSuccessfulExecutions(const Aws::String& value) { m_successfulExecutions.push_back(value); return *this; } /** *

The list of triggers that were successfully tested. This list provides the * names of the triggers that were successfully tested, separated by commas.

*/ inline TestRepositoryTriggersResult& AddSuccessfulExecutions(Aws::String&& value) { m_successfulExecutions.push_back(std::move(value)); return *this; } /** *

The list of triggers that were successfully tested. This list provides the * names of the triggers that were successfully tested, separated by commas.

*/ inline TestRepositoryTriggersResult& AddSuccessfulExecutions(const char* value) { m_successfulExecutions.push_back(value); return *this; } /** *

The list of triggers that were not tested. This list provides the names of * the triggers that could not be tested, separated by commas.

*/ inline const Aws::Vector& GetFailedExecutions() const{ return m_failedExecutions; } /** *

The list of triggers that were not tested. This list provides the names of * the triggers that could not be tested, separated by commas.

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

The list of triggers that were not tested. This list provides the names of * the triggers that could not be tested, separated by commas.

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

The list of triggers that were not tested. This list provides the names of * the triggers that could not be tested, separated by commas.

*/ inline TestRepositoryTriggersResult& WithFailedExecutions(const Aws::Vector& value) { SetFailedExecutions(value); return *this;} /** *

The list of triggers that were not tested. This list provides the names of * the triggers that could not be tested, separated by commas.

*/ inline TestRepositoryTriggersResult& WithFailedExecutions(Aws::Vector&& value) { SetFailedExecutions(std::move(value)); return *this;} /** *

The list of triggers that were not tested. This list provides the names of * the triggers that could not be tested, separated by commas.

*/ inline TestRepositoryTriggersResult& AddFailedExecutions(const RepositoryTriggerExecutionFailure& value) { m_failedExecutions.push_back(value); return *this; } /** *

The list of triggers that were not tested. This list provides the names of * the triggers that could not be tested, separated by commas.

*/ inline TestRepositoryTriggersResult& AddFailedExecutions(RepositoryTriggerExecutionFailure&& value) { m_failedExecutions.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 TestRepositoryTriggersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline TestRepositoryTriggersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline TestRepositoryTriggersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_successfulExecutions; Aws::Vector m_failedExecutions; Aws::String m_requestId; }; } // namespace Model } // namespace CodeCommit } // namespace Aws