AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
JobWorkerExecutorConfiguration.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodePipeline
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEPIPELINE_API JobWorkerExecutorConfiguration() = default;
39 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<Aws::String>& GetPollingAccounts() const { return m_pollingAccounts; }
48 inline bool PollingAccountsHasBeenSet() const { return m_pollingAccountsHasBeenSet; }
49 template<typename PollingAccountsT = Aws::Vector<Aws::String>>
50 void SetPollingAccounts(PollingAccountsT&& value) { m_pollingAccountsHasBeenSet = true; m_pollingAccounts = std::forward<PollingAccountsT>(value); }
51 template<typename PollingAccountsT = Aws::Vector<Aws::String>>
52 JobWorkerExecutorConfiguration& WithPollingAccounts(PollingAccountsT&& value) { SetPollingAccounts(std::forward<PollingAccountsT>(value)); return *this;}
53 template<typename PollingAccountsT = Aws::String>
54 JobWorkerExecutorConfiguration& AddPollingAccounts(PollingAccountsT&& value) { m_pollingAccountsHasBeenSet = true; m_pollingAccounts.emplace_back(std::forward<PollingAccountsT>(value)); return *this; }
56
58
62 inline const Aws::Vector<Aws::String>& GetPollingServicePrincipals() const { return m_pollingServicePrincipals; }
63 inline bool PollingServicePrincipalsHasBeenSet() const { return m_pollingServicePrincipalsHasBeenSet; }
64 template<typename PollingServicePrincipalsT = Aws::Vector<Aws::String>>
65 void SetPollingServicePrincipals(PollingServicePrincipalsT&& value) { m_pollingServicePrincipalsHasBeenSet = true; m_pollingServicePrincipals = std::forward<PollingServicePrincipalsT>(value); }
66 template<typename PollingServicePrincipalsT = Aws::Vector<Aws::String>>
67 JobWorkerExecutorConfiguration& WithPollingServicePrincipals(PollingServicePrincipalsT&& value) { SetPollingServicePrincipals(std::forward<PollingServicePrincipalsT>(value)); return *this;}
68 template<typename PollingServicePrincipalsT = Aws::String>
69 JobWorkerExecutorConfiguration& AddPollingServicePrincipals(PollingServicePrincipalsT&& value) { m_pollingServicePrincipalsHasBeenSet = true; m_pollingServicePrincipals.emplace_back(std::forward<PollingServicePrincipalsT>(value)); return *this; }
71 private:
72
73 Aws::Vector<Aws::String> m_pollingAccounts;
74 bool m_pollingAccountsHasBeenSet = false;
75
76 Aws::Vector<Aws::String> m_pollingServicePrincipals;
77 bool m_pollingServicePrincipalsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CodePipeline
82} // namespace Aws
AWS_CODEPIPELINE_API JobWorkerExecutorConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API JobWorkerExecutorConfiguration(Aws::Utils::Json::JsonView jsonValue)
JobWorkerExecutorConfiguration & WithPollingAccounts(PollingAccountsT &&value)
JobWorkerExecutorConfiguration & AddPollingAccounts(PollingAccountsT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
JobWorkerExecutorConfiguration & WithPollingServicePrincipals(PollingServicePrincipalsT &&value)
AWS_CODEPIPELINE_API JobWorkerExecutorConfiguration()=default
JobWorkerExecutorConfiguration & AddPollingServicePrincipals(PollingServicePrincipalsT &&value)
const Aws::Vector< Aws::String > & GetPollingServicePrincipals() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue