AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
Allowed.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/Policy.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
28class Allowed {
29 public:
30 AWS_IOT_API Allowed() = default;
31 AWS_IOT_API Allowed(Aws::Utils::Json::JsonView jsonValue);
34
36
39 inline const Aws::Vector<Policy>& GetPolicies() const { return m_policies; }
40 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
41 template <typename PoliciesT = Aws::Vector<Policy>>
42 void SetPolicies(PoliciesT&& value) {
43 m_policiesHasBeenSet = true;
44 m_policies = std::forward<PoliciesT>(value);
45 }
46 template <typename PoliciesT = Aws::Vector<Policy>>
47 Allowed& WithPolicies(PoliciesT&& value) {
48 SetPolicies(std::forward<PoliciesT>(value));
49 return *this;
50 }
51 template <typename PoliciesT = Policy>
52 Allowed& AddPolicies(PoliciesT&& value) {
53 m_policiesHasBeenSet = true;
54 m_policies.emplace_back(std::forward<PoliciesT>(value));
55 return *this;
56 }
58 private:
59 Aws::Vector<Policy> m_policies;
60 bool m_policiesHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace IoT
65} // namespace Aws
bool PoliciesHasBeenSet() const
Definition Allowed.h:40
AWS_IOT_API Allowed & operator=(Aws::Utils::Json::JsonView jsonValue)
Allowed & WithPolicies(PoliciesT &&value)
Definition Allowed.h:47
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:42
const Aws::Vector< Policy > & GetPolicies() const
Definition Allowed.h:39
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue