AWS SDK for C++  1.9.123
AWS SDK for C++
AuthInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace IoT
24 {
25 namespace Model
26 {
27 
34  {
35  public:
40 
41 
45  inline const ActionType& GetActionType() const{ return m_actionType; }
46 
50  inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
51 
55  inline void SetActionType(const ActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
56 
60  inline void SetActionType(ActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
61 
65  inline AuthInfo& WithActionType(const ActionType& value) { SetActionType(value); return *this;}
66 
70  inline AuthInfo& WithActionType(ActionType&& value) { SetActionType(std::move(value)); return *this;}
71 
72 
77  inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
78 
83  inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
84 
89  inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
90 
95  inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
96 
101  inline AuthInfo& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
102 
107  inline AuthInfo& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
108 
113  inline AuthInfo& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
114 
119  inline AuthInfo& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
120 
125  inline AuthInfo& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
126 
127  private:
128 
129  ActionType m_actionType;
130  bool m_actionTypeHasBeenSet;
131 
132  Aws::Vector<Aws::String> m_resources;
133  bool m_resourcesHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace IoT
138 } // namespace Aws
Aws::IoT::Model::AuthInfo::SetResources
void SetResources(Aws::Vector< Aws::String > &&value)
Definition: AuthInfo.h:95
Aws::IoT::Model::AuthInfo::SetActionType
void SetActionType(ActionType &&value)
Definition: AuthInfo.h:60
Aws::IoT::Model::AuthInfo::operator=
AuthInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AuthInfo::AddResources
AuthInfo & AddResources(Aws::String &&value)
Definition: AuthInfo.h:119
Aws::IoT::Model::AuthInfo::GetActionType
const ActionType & GetActionType() const
Definition: AuthInfo.h:45
Aws::IoT::Model::AuthInfo::ResourcesHasBeenSet
bool ResourcesHasBeenSet() const
Definition: AuthInfo.h:83
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::AuthInfo::AuthInfo
AuthInfo()
AWSVector.h
Aws::IoT::Model::AuthInfo
Definition: AuthInfo.h:34
Aws::IoT::Model::AuthInfo::WithResources
AuthInfo & WithResources(Aws::Vector< Aws::String > &&value)
Definition: AuthInfo.h:107
Aws::IoT::Model::AuthInfo::GetResources
const Aws::Vector< Aws::String > & GetResources() const
Definition: AuthInfo.h:77
Aws::IoT::Model::AuthInfo::AddResources
AuthInfo & AddResources(const Aws::String &value)
Definition: AuthInfo.h:113
Aws::IoT::Model::AuthInfo::ActionTypeHasBeenSet
bool ActionTypeHasBeenSet() const
Definition: AuthInfo.h:50
ActionType.h
Aws::IoT::Model::AuthInfo::AuthInfo
AuthInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::AuthInfo::WithActionType
AuthInfo & WithActionType(const ActionType &value)
Definition: AuthInfo.h:65
Aws::IoT::Model::AuthInfo::SetResources
void SetResources(const Aws::Vector< Aws::String > &value)
Definition: AuthInfo.h:89
Aws::IoT::Model::AuthInfo::SetActionType
void SetActionType(const ActionType &value)
Definition: AuthInfo.h:55
Aws::IoT::Model::AuthInfo::WithResources
AuthInfo & WithResources(const Aws::Vector< Aws::String > &value)
Definition: AuthInfo.h:101
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ActionType
ActionType
Definition: ActionType.h:17
Aws::IoT::Model::AuthInfo::WithActionType
AuthInfo & WithActionType(ActionType &&value)
Definition: AuthInfo.h:70
Aws::IoT::Model::AuthInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::AuthInfo::AddResources
AuthInfo & AddResources(const char *value)
Definition: AuthInfo.h:125
IoT_EXPORTS.h