/** * 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 get repository triggers operation.

See * Also:

AWS * API Reference

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

The system-generated unique ID for the trigger.

*/ inline const Aws::String& GetConfigurationId() const{ return m_configurationId; } /** *

The system-generated unique ID for the trigger.

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

The system-generated unique ID for the trigger.

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

The system-generated unique ID for the trigger.

*/ inline void SetConfigurationId(const char* value) { m_configurationId.assign(value); } /** *

The system-generated unique ID for the trigger.

*/ inline GetRepositoryTriggersResult& WithConfigurationId(const Aws::String& value) { SetConfigurationId(value); return *this;} /** *

The system-generated unique ID for the trigger.

*/ inline GetRepositoryTriggersResult& WithConfigurationId(Aws::String&& value) { SetConfigurationId(std::move(value)); return *this;} /** *

The system-generated unique ID for the trigger.

*/ inline GetRepositoryTriggersResult& WithConfigurationId(const char* value) { SetConfigurationId(value); return *this;} /** *

The JSON block of configuration information for each trigger.

*/ inline const Aws::Vector& GetTriggers() const{ return m_triggers; } /** *

The JSON block of configuration information for each trigger.

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

The JSON block of configuration information for each trigger.

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

The JSON block of configuration information for each trigger.

*/ inline GetRepositoryTriggersResult& WithTriggers(const Aws::Vector& value) { SetTriggers(value); return *this;} /** *

The JSON block of configuration information for each trigger.

*/ inline GetRepositoryTriggersResult& WithTriggers(Aws::Vector&& value) { SetTriggers(std::move(value)); return *this;} /** *

The JSON block of configuration information for each trigger.

*/ inline GetRepositoryTriggersResult& AddTriggers(const RepositoryTrigger& value) { m_triggers.push_back(value); return *this; } /** *

The JSON block of configuration information for each trigger.

*/ inline GetRepositoryTriggersResult& AddTriggers(RepositoryTrigger&& value) { m_triggers.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 GetRepositoryTriggersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetRepositoryTriggersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetRepositoryTriggersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_configurationId; Aws::Vector m_triggers; Aws::String m_requestId; }; } // namespace Model } // namespace CodeCommit } // namespace Aws