AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Allowed.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/model/Policy.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 IoT
23{
24namespace Model
25{
26
32 class Allowed
33 {
34 public:
35 AWS_IOT_API Allowed() = default;
36 AWS_IOT_API Allowed(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const Aws::Vector<Policy>& GetPolicies() const { return m_policies; }
46 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
47 template<typename PoliciesT = Aws::Vector<Policy>>
48 void SetPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies = std::forward<PoliciesT>(value); }
49 template<typename PoliciesT = Aws::Vector<Policy>>
50 Allowed& WithPolicies(PoliciesT&& value) { SetPolicies(std::forward<PoliciesT>(value)); return *this;}
51 template<typename PoliciesT = Policy>
52 Allowed& AddPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies.emplace_back(std::forward<PoliciesT>(value)); return *this; }
54 private:
55
56 Aws::Vector<Policy> m_policies;
57 bool m_policiesHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace IoT
62} // namespace Aws
bool PoliciesHasBeenSet() const
Definition Allowed.h:46
AWS_IOT_API Allowed & operator=(Aws::Utils::Json::JsonView jsonValue)
Allowed & WithPolicies(PoliciesT &&value)
Definition Allowed.h:50
AWS_IOT_API Allowed(Aws::Utils::Json::JsonView jsonValue)
Allowed & AddPolicies(PoliciesT &&value)
Definition Allowed.h:52
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API Allowed()=default
void SetPolicies(PoliciesT &&value)
Definition Allowed.h:48
const Aws::Vector< Policy > & GetPolicies() const
Definition Allowed.h:45
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue