AWS SDK for C++

AWS SDK for C++ Version 1.11.866

Loading...
Searching...
No Matches
ApprovalConfiguration.h
1
6#pragma once
7#include <aws/agent-registry-control/AgentRegistryControl_EXPORTS.h>
8#include <aws/agent-registry-control/model/AutoApprovalRule.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AgentRegistryControl {
21namespace Model {
22
33 public:
34 AWS_AGENTREGISTRYCONTROL_API ApprovalConfiguration() = default;
35 AWS_AGENTREGISTRYCONTROL_API ApprovalConfiguration(Aws::Utils::Json::JsonView jsonValue);
36 AWS_AGENTREGISTRYCONTROL_API ApprovalConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AGENTREGISTRYCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Vector<AutoApprovalRule>& GetAutoApprovalRules() const { return m_autoApprovalRules; }
45 inline bool AutoApprovalRulesHasBeenSet() const { return m_autoApprovalRulesHasBeenSet; }
46 template <typename AutoApprovalRulesT = Aws::Vector<AutoApprovalRule>>
47 void SetAutoApprovalRules(AutoApprovalRulesT&& value) {
48 m_autoApprovalRulesHasBeenSet = true;
49 m_autoApprovalRules = std::forward<AutoApprovalRulesT>(value);
50 }
51 template <typename AutoApprovalRulesT = Aws::Vector<AutoApprovalRule>>
52 ApprovalConfiguration& WithAutoApprovalRules(AutoApprovalRulesT&& value) {
53 SetAutoApprovalRules(std::forward<AutoApprovalRulesT>(value));
54 return *this;
55 }
57 m_autoApprovalRulesHasBeenSet = true;
58 m_autoApprovalRules.push_back(value);
59 return *this;
60 }
62 private:
63 Aws::Vector<AutoApprovalRule> m_autoApprovalRules;
64 bool m_autoApprovalRulesHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace AgentRegistryControl
69} // namespace Aws
AWS_AGENTREGISTRYCONTROL_API ApprovalConfiguration()=default
AWS_AGENTREGISTRYCONTROL_API ApprovalConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ApprovalConfiguration & WithAutoApprovalRules(AutoApprovalRulesT &&value)
AWS_AGENTREGISTRYCONTROL_API Aws::Utils::Json::JsonValue Jsonize() const
ApprovalConfiguration & AddAutoApprovalRules(AutoApprovalRule value)
AWS_AGENTREGISTRYCONTROL_API ApprovalConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AutoApprovalRule > & GetAutoApprovalRules() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue