AWS SDK for C++  1.9.124
AWS SDK for C++
Allowed.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <aws/iot/model/Policy.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::Vector<Policy>& GetPolicies() const{ return m_policies; }
45 
49  inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
50 
54  inline void SetPolicies(const Aws::Vector<Policy>& value) { m_policiesHasBeenSet = true; m_policies = value; }
55 
59  inline void SetPolicies(Aws::Vector<Policy>&& value) { m_policiesHasBeenSet = true; m_policies = std::move(value); }
60 
64  inline Allowed& WithPolicies(const Aws::Vector<Policy>& value) { SetPolicies(value); return *this;}
65 
69  inline Allowed& WithPolicies(Aws::Vector<Policy>&& value) { SetPolicies(std::move(value)); return *this;}
70 
74  inline Allowed& AddPolicies(const Policy& value) { m_policiesHasBeenSet = true; m_policies.push_back(value); return *this; }
75 
79  inline Allowed& AddPolicies(Policy&& value) { m_policiesHasBeenSet = true; m_policies.push_back(std::move(value)); return *this; }
80 
81  private:
82 
83  Aws::Vector<Policy> m_policies;
84  bool m_policiesHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace IoT
89 } // namespace Aws
Aws::IoT::Model::Allowed::WithPolicies
Allowed & WithPolicies(const Aws::Vector< Policy > &value)
Definition: Allowed.h:64
Aws::IoT::Model::Allowed::AddPolicies
Allowed & AddPolicies(Policy &&value)
Definition: Allowed.h:79
Aws::IoT::Model::Allowed
Definition: Allowed.h:33
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::Allowed::operator=
Allowed & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSVector.h
Aws::IoT::Model::Allowed::WithPolicies
Allowed & WithPolicies(Aws::Vector< Policy > &&value)
Definition: Allowed.h:69
Aws::IoT::Model::Allowed::AddPolicies
Allowed & AddPolicies(const Policy &value)
Definition: Allowed.h:74
Aws::IoT::Model::Allowed::Allowed
Allowed(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::Allowed::Allowed
Allowed()
Policy.h
Aws::IoT::Model::Policy
Definition: Policy.h:32
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::Allowed::SetPolicies
void SetPolicies(const Aws::Vector< Policy > &value)
Definition: Allowed.h:54
Aws::IoT::Model::Allowed::SetPolicies
void SetPolicies(Aws::Vector< Policy > &&value)
Definition: Allowed.h:59
Aws::IoT::Model::Allowed::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::Allowed::GetPolicies
const Aws::Vector< Policy > & GetPolicies() const
Definition: Allowed.h:44
Aws::IoT::Model::Allowed::PoliciesHasBeenSet
bool PoliciesHasBeenSet() const
Definition: Allowed.h:49
IoT_EXPORTS.h