AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AuthInfo.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/ActionType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoT
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_IOT_API AuthInfo() = default;
37 AWS_IOT_API AuthInfo(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline ActionType GetActionType() const { return m_actionType; }
47 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
48 inline void SetActionType(ActionType value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
49 inline AuthInfo& WithActionType(ActionType value) { SetActionType(value); return *this;}
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) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
61 template<typename ResourcesT = Aws::Vector<Aws::String>>
62 AuthInfo& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
63 template<typename ResourcesT = Aws::String>
64 AuthInfo& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
66 private:
67
68 ActionType m_actionType{ActionType::NOT_SET};
69 bool m_actionTypeHasBeenSet = false;
70
71 Aws::Vector<Aws::String> m_resources;
72 bool m_resourcesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace IoT
77} // namespace Aws
bool ResourcesHasBeenSet() const
Definition AuthInfo.h:58
ActionType GetActionType() const
Definition AuthInfo.h:46
AuthInfo & AddResources(ResourcesT &&value)
Definition AuthInfo.h:64
AWS_IOT_API AuthInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetActionType(ActionType value)
Definition AuthInfo.h:48
void SetResources(ResourcesT &&value)
Definition AuthInfo.h:60
AuthInfo & WithResources(ResourcesT &&value)
Definition AuthInfo.h:62
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
bool ActionTypeHasBeenSet() const
Definition AuthInfo.h:47
AWS_IOT_API AuthInfo(Aws::Utils::Json::JsonView jsonValue)
AuthInfo & WithActionType(ActionType value)
Definition AuthInfo.h:49
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