/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodePipeline { namespace Model { /** *

Details about the polling configuration for the JobWorker action * engine, or executor.

See Also:

AWS * API Reference

*/ class JobWorkerExecutorConfiguration { public: AWS_CODEPIPELINE_API JobWorkerExecutorConfiguration(); AWS_CODEPIPELINE_API JobWorkerExecutorConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API JobWorkerExecutorConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The accounts in which the job worker is configured and might poll for jobs as * part of the action execution.

*/ inline const Aws::Vector& GetPollingAccounts() const{ return m_pollingAccounts; } /** *

The accounts in which the job worker is configured and might poll for jobs as * part of the action execution.

*/ inline bool PollingAccountsHasBeenSet() const { return m_pollingAccountsHasBeenSet; } /** *

The accounts in which the job worker is configured and might poll for jobs as * part of the action execution.

*/ inline void SetPollingAccounts(const Aws::Vector& value) { m_pollingAccountsHasBeenSet = true; m_pollingAccounts = value; } /** *

The accounts in which the job worker is configured and might poll for jobs as * part of the action execution.

*/ inline void SetPollingAccounts(Aws::Vector&& value) { m_pollingAccountsHasBeenSet = true; m_pollingAccounts = std::move(value); } /** *

The accounts in which the job worker is configured and might poll for jobs as * part of the action execution.

*/ inline JobWorkerExecutorConfiguration& WithPollingAccounts(const Aws::Vector& value) { SetPollingAccounts(value); return *this;} /** *

The accounts in which the job worker is configured and might poll for jobs as * part of the action execution.

*/ inline JobWorkerExecutorConfiguration& WithPollingAccounts(Aws::Vector&& value) { SetPollingAccounts(std::move(value)); return *this;} /** *

The accounts in which the job worker is configured and might poll for jobs as * part of the action execution.

*/ inline JobWorkerExecutorConfiguration& AddPollingAccounts(const Aws::String& value) { m_pollingAccountsHasBeenSet = true; m_pollingAccounts.push_back(value); return *this; } /** *

The accounts in which the job worker is configured and might poll for jobs as * part of the action execution.

*/ inline JobWorkerExecutorConfiguration& AddPollingAccounts(Aws::String&& value) { m_pollingAccountsHasBeenSet = true; m_pollingAccounts.push_back(std::move(value)); return *this; } /** *

The accounts in which the job worker is configured and might poll for jobs as * part of the action execution.

*/ inline JobWorkerExecutorConfiguration& AddPollingAccounts(const char* value) { m_pollingAccountsHasBeenSet = true; m_pollingAccounts.push_back(value); return *this; } /** *

The service Principals in which the job worker is configured and might poll * for jobs as part of the action execution.

*/ inline const Aws::Vector& GetPollingServicePrincipals() const{ return m_pollingServicePrincipals; } /** *

The service Principals in which the job worker is configured and might poll * for jobs as part of the action execution.

*/ inline bool PollingServicePrincipalsHasBeenSet() const { return m_pollingServicePrincipalsHasBeenSet; } /** *

The service Principals in which the job worker is configured and might poll * for jobs as part of the action execution.

*/ inline void SetPollingServicePrincipals(const Aws::Vector& value) { m_pollingServicePrincipalsHasBeenSet = true; m_pollingServicePrincipals = value; } /** *

The service Principals in which the job worker is configured and might poll * for jobs as part of the action execution.

*/ inline void SetPollingServicePrincipals(Aws::Vector&& value) { m_pollingServicePrincipalsHasBeenSet = true; m_pollingServicePrincipals = std::move(value); } /** *

The service Principals in which the job worker is configured and might poll * for jobs as part of the action execution.

*/ inline JobWorkerExecutorConfiguration& WithPollingServicePrincipals(const Aws::Vector& value) { SetPollingServicePrincipals(value); return *this;} /** *

The service Principals in which the job worker is configured and might poll * for jobs as part of the action execution.

*/ inline JobWorkerExecutorConfiguration& WithPollingServicePrincipals(Aws::Vector&& value) { SetPollingServicePrincipals(std::move(value)); return *this;} /** *

The service Principals in which the job worker is configured and might poll * for jobs as part of the action execution.

*/ inline JobWorkerExecutorConfiguration& AddPollingServicePrincipals(const Aws::String& value) { m_pollingServicePrincipalsHasBeenSet = true; m_pollingServicePrincipals.push_back(value); return *this; } /** *

The service Principals in which the job worker is configured and might poll * for jobs as part of the action execution.

*/ inline JobWorkerExecutorConfiguration& AddPollingServicePrincipals(Aws::String&& value) { m_pollingServicePrincipalsHasBeenSet = true; m_pollingServicePrincipals.push_back(std::move(value)); return *this; } /** *

The service Principals in which the job worker is configured and might poll * for jobs as part of the action execution.

*/ inline JobWorkerExecutorConfiguration& AddPollingServicePrincipals(const char* value) { m_pollingServicePrincipalsHasBeenSet = true; m_pollingServicePrincipals.push_back(value); return *this; } private: Aws::Vector m_pollingAccounts; bool m_pollingAccountsHasBeenSet = false; Aws::Vector m_pollingServicePrincipals; bool m_pollingServicePrincipalsHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws