AWS SDK for C++  1.9.129
AWS SDK for C++
ImplicitDeny.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 
35  {
36  public:
41 
42 
47  inline const Aws::Vector<Policy>& GetPolicies() const{ return m_policies; }
48 
53  inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
54 
59  inline void SetPolicies(const Aws::Vector<Policy>& value) { m_policiesHasBeenSet = true; m_policies = value; }
60 
65  inline void SetPolicies(Aws::Vector<Policy>&& value) { m_policiesHasBeenSet = true; m_policies = std::move(value); }
66 
71  inline ImplicitDeny& WithPolicies(const Aws::Vector<Policy>& value) { SetPolicies(value); return *this;}
72 
77  inline ImplicitDeny& WithPolicies(Aws::Vector<Policy>&& value) { SetPolicies(std::move(value)); return *this;}
78 
83  inline ImplicitDeny& AddPolicies(const Policy& value) { m_policiesHasBeenSet = true; m_policies.push_back(value); return *this; }
84 
89  inline ImplicitDeny& AddPolicies(Policy&& value) { m_policiesHasBeenSet = true; m_policies.push_back(std::move(value)); return *this; }
90 
91  private:
92 
93  Aws::Vector<Policy> m_policies;
94  bool m_policiesHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace IoT
99 } // namespace Aws
Aws::IoT::Model::ImplicitDeny::PoliciesHasBeenSet
bool PoliciesHasBeenSet() const
Definition: ImplicitDeny.h:53
Aws::IoT::Model::ImplicitDeny::AddPolicies
ImplicitDeny & AddPolicies(Policy &&value)
Definition: ImplicitDeny.h:89
Aws::IoT::Model::ImplicitDeny::ImplicitDeny
ImplicitDeny()
Aws::IoT::Model::ImplicitDeny::WithPolicies
ImplicitDeny & WithPolicies(const Aws::Vector< Policy > &value)
Definition: ImplicitDeny.h:71
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::IoT::Model::ImplicitDeny::ImplicitDeny
ImplicitDeny(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ImplicitDeny::SetPolicies
void SetPolicies(Aws::Vector< Policy > &&value)
Definition: ImplicitDeny.h:65
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::ImplicitDeny
Definition: ImplicitDeny.h:35
Aws::IoT::Model::ImplicitDeny::GetPolicies
const Aws::Vector< Policy > & GetPolicies() const
Definition: ImplicitDeny.h:47
Aws::IoT::Model::ImplicitDeny::WithPolicies
ImplicitDeny & WithPolicies(Aws::Vector< Policy > &&value)
Definition: ImplicitDeny.h:77
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ImplicitDeny::SetPolicies
void SetPolicies(const Aws::Vector< Policy > &value)
Definition: ImplicitDeny.h:59
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ImplicitDeny::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ImplicitDeny::AddPolicies
ImplicitDeny & AddPolicies(const Policy &value)
Definition: ImplicitDeny.h:83
IoT_EXPORTS.h
Aws::IoT::Model::ImplicitDeny::operator=
ImplicitDeny & operator=(Aws::Utils::Json::JsonView jsonValue)