AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
AuthInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/ActionType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT {
22namespace Model {
23
29class AuthInfo {
30 public:
31 AWS_IOT_API AuthInfo() = default;
32 AWS_IOT_API AuthInfo(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline ActionType GetActionType() const { return m_actionType; }
41 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
42 inline void SetActionType(ActionType value) {
43 m_actionTypeHasBeenSet = true;
44 m_actionType = value;
45 }
47 SetActionType(value);
48 return *this;
49 }
51
53
57 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
58 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
59 template <typename ResourcesT = Aws::Vector<Aws::String>>
60 void SetResources(ResourcesT&& value) {
61 m_resourcesHasBeenSet = true;
62 m_resources = std::forward<ResourcesT>(value);
63 }
64 template <typename ResourcesT = Aws::Vector<Aws::String>>
65 AuthInfo& WithResources(ResourcesT&& value) {
66 SetResources(std::forward<ResourcesT>(value));
67 return *this;
68 }
69 template <typename ResourcesT = Aws::String>
70 AuthInfo& AddResources(ResourcesT&& value) {
71 m_resourcesHasBeenSet = true;
72 m_resources.emplace_back(std::forward<ResourcesT>(value));
73 return *this;
74 }
76 private:
77 ActionType m_actionType{ActionType::NOT_SET};
78
79 Aws::Vector<Aws::String> m_resources;
80 bool m_actionTypeHasBeenSet = false;
81 bool m_resourcesHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace IoT
86} // namespace Aws
bool ResourcesHasBeenSet() const
Definition AuthInfo.h:58
ActionType GetActionType() const
Definition AuthInfo.h:40
AuthInfo & AddResources(ResourcesT &&value)
Definition AuthInfo.h:70
AWS_IOT_API AuthInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetActionType(ActionType value)
Definition AuthInfo.h:42
void SetResources(ResourcesT &&value)
Definition AuthInfo.h:60
AuthInfo & WithResources(ResourcesT &&value)
Definition AuthInfo.h:65
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
bool ActionTypeHasBeenSet() const
Definition AuthInfo.h:41
AWS_IOT_API AuthInfo(Aws::Utils::Json::JsonView jsonValue)
AuthInfo & WithActionType(ActionType value)
Definition AuthInfo.h:46
AWS_IOT_API AuthInfo()=default
const Aws::Vector< Aws::String > & GetResources() const
Definition AuthInfo.h:57
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue