AWS SDK for C++  1.9.124
AWS SDK for C++
ExplicitDeny.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 ExplicitDeny& WithPolicies(const Aws::Vector<Policy>& value) { SetPolicies(value); return *this;}
65 
69  inline ExplicitDeny& WithPolicies(Aws::Vector<Policy>&& value) { SetPolicies(std::move(value)); return *this;}
70 
74  inline ExplicitDeny& AddPolicies(const Policy& value) { m_policiesHasBeenSet = true; m_policies.push_back(value); return *this; }
75 
79  inline ExplicitDeny& 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::ExplicitDeny::WithPolicies
ExplicitDeny & WithPolicies(Aws::Vector< Policy > &&value)
Definition: ExplicitDeny.h:69
Aws::IoT::Model::ExplicitDeny::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ExplicitDeny::ExplicitDeny
ExplicitDeny(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ExplicitDeny::PoliciesHasBeenSet
bool PoliciesHasBeenSet() const
Definition: ExplicitDeny.h:49
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::ExplicitDeny::SetPolicies
void SetPolicies(Aws::Vector< Policy > &&value)
Definition: ExplicitDeny.h:59
Aws::IoT::Model::ExplicitDeny::GetPolicies
const Aws::Vector< Policy > & GetPolicies() const
Definition: ExplicitDeny.h:44
AWSVector.h
Aws::IoT::Model::ExplicitDeny
Definition: ExplicitDeny.h:33
Policy.h
Aws::IoT::Model::Policy
Definition: Policy.h:32
Aws::IoT::Model::ExplicitDeny::AddPolicies
ExplicitDeny & AddPolicies(const Policy &value)
Definition: ExplicitDeny.h:74
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ExplicitDeny::operator=
ExplicitDeny & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ExplicitDeny::AddPolicies
ExplicitDeny & AddPolicies(Policy &&value)
Definition: ExplicitDeny.h:79
Aws::IoT::Model::ExplicitDeny::ExplicitDeny
ExplicitDeny()
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ExplicitDeny::WithPolicies
ExplicitDeny & WithPolicies(const Aws::Vector< Policy > &value)
Definition: ExplicitDeny.h:64
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ExplicitDeny::SetPolicies
void SetPolicies(const Aws::Vector< Policy > &value)
Definition: ExplicitDeny.h:54
IoT_EXPORTS.h