/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CodeCommit { namespace Model { /** *

Represents the input of a put repository triggers operation.

See * Also:

AWS * API Reference

*/ class PutRepositoryTriggersRequest : public CodeCommitRequest { public: AWS_CODECOMMIT_API PutRepositoryTriggersRequest(); // 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 "PutRepositoryTriggers"; } AWS_CODECOMMIT_API Aws::String SerializePayload() const override; AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the repository where you want to create or update the * trigger.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the repository where you want to create or update the * trigger.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The name of the repository where you want to create or update the * trigger.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The name of the repository where you want to create or update the * trigger.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The name of the repository where you want to create or update the * trigger.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The name of the repository where you want to create or update the * trigger.

*/ inline PutRepositoryTriggersRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the repository where you want to create or update the * trigger.

*/ inline PutRepositoryTriggersRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the repository where you want to create or update the * trigger.

*/ inline PutRepositoryTriggersRequest& WithRepositoryName(const char* value) { SetRepositoryName(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 bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; } /** *

The JSON block of configuration information for each trigger.

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

The JSON block of configuration information for each trigger.

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

The JSON block of configuration information for each trigger.

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

The JSON block of configuration information for each trigger.

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

The JSON block of configuration information for each trigger.

*/ inline PutRepositoryTriggersRequest& AddTriggers(const RepositoryTrigger& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; } /** *

The JSON block of configuration information for each trigger.

*/ inline PutRepositoryTriggersRequest& AddTriggers(RepositoryTrigger&& value) { m_triggersHasBeenSet = true; m_triggers.push_back(std::move(value)); return *this; } private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::Vector m_triggers; bool m_triggersHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws