AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
CapabilityConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
9#include <aws/devops-agent/model/TriggerFilterGroup.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsAgent {
21namespace Model {
22
30 public:
31 AWS_DEVOPSAGENT_API CapabilityConfiguration() = default;
34 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline bool GetEnabled() const { return m_enabled; }
41 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
42 inline void SetEnabled(bool value) {
43 m_enabledHasBeenSet = true;
44 m_enabled = value;
45 }
47 SetEnabled(value);
48 return *this;
49 }
51
53
58 inline const Aws::Vector<TriggerFilterGroup>& GetTriggerFilterGroups() const { return m_triggerFilterGroups; }
59 inline bool TriggerFilterGroupsHasBeenSet() const { return m_triggerFilterGroupsHasBeenSet; }
60 template <typename TriggerFilterGroupsT = Aws::Vector<TriggerFilterGroup>>
61 void SetTriggerFilterGroups(TriggerFilterGroupsT&& value) {
62 m_triggerFilterGroupsHasBeenSet = true;
63 m_triggerFilterGroups = std::forward<TriggerFilterGroupsT>(value);
64 }
65 template <typename TriggerFilterGroupsT = Aws::Vector<TriggerFilterGroup>>
66 CapabilityConfiguration& WithTriggerFilterGroups(TriggerFilterGroupsT&& value) {
67 SetTriggerFilterGroups(std::forward<TriggerFilterGroupsT>(value));
68 return *this;
69 }
70 template <typename TriggerFilterGroupsT = TriggerFilterGroup>
71 CapabilityConfiguration& AddTriggerFilterGroups(TriggerFilterGroupsT&& value) {
72 m_triggerFilterGroupsHasBeenSet = true;
73 m_triggerFilterGroups.emplace_back(std::forward<TriggerFilterGroupsT>(value));
74 return *this;
75 }
77 private:
78 bool m_enabled{false};
79
80 Aws::Vector<TriggerFilterGroup> m_triggerFilterGroups;
81 bool m_enabledHasBeenSet = false;
82 bool m_triggerFilterGroupsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace DevOpsAgent
87} // namespace Aws
const Aws::Vector< TriggerFilterGroup > & GetTriggerFilterGroups() const
CapabilityConfiguration & AddTriggerFilterGroups(TriggerFilterGroupsT &&value)
void SetTriggerFilterGroups(TriggerFilterGroupsT &&value)
AWS_DEVOPSAGENT_API CapabilityConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API CapabilityConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API CapabilityConfiguration()=default
CapabilityConfiguration & WithEnabled(bool value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
CapabilityConfiguration & WithTriggerFilterGroups(TriggerFilterGroupsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue