AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
37 AWS_IOT_API AuthInfo(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const ActionType& GetActionType() const{ return m_actionType; }
47 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
48 inline void SetActionType(const ActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
49 inline void SetActionType(ActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
50 inline AuthInfo& WithActionType(const ActionType& value) { SetActionType(value); return *this;}
51 inline AuthInfo& WithActionType(ActionType&& value) { SetActionType(std::move(value)); return *this;}
53
55
59 inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
60 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
61 inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
62 inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
63 inline AuthInfo& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
64 inline AuthInfo& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
65 inline AuthInfo& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
66 inline AuthInfo& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
67 inline AuthInfo& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
69 private:
70
71 ActionType m_actionType;
72 bool m_actionTypeHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_resources;
75 bool m_resourcesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace IoT
80} // namespace Aws
bool ResourcesHasBeenSet() const
Definition AuthInfo.h:60
void SetResources(Aws::Vector< Aws::String > &&value)
Definition AuthInfo.h:62
AWS_IOT_API AuthInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthInfo & AddResources(Aws::String &&value)
Definition AuthInfo.h:66
AuthInfo & AddResources(const char *value)
Definition AuthInfo.h:67
AuthInfo & WithActionType(ActionType &&value)
Definition AuthInfo.h:51
const ActionType & GetActionType() const
Definition AuthInfo.h:46
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResources(const Aws::Vector< Aws::String > &value)
Definition AuthInfo.h:61
AuthInfo & AddResources(const Aws::String &value)
Definition AuthInfo.h:65
AuthInfo & WithResources(Aws::Vector< Aws::String > &&value)
Definition AuthInfo.h:64
AuthInfo & WithResources(const Aws::Vector< Aws::String > &value)
Definition AuthInfo.h:63
void SetActionType(const ActionType &value)
Definition AuthInfo.h:48
AuthInfo & WithActionType(const ActionType &value)
Definition AuthInfo.h:50
bool ActionTypeHasBeenSet() const
Definition AuthInfo.h:47
AWS_IOT_API AuthInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetResources() const
Definition AuthInfo.h:59
void SetActionType(ActionType &&value)
Definition AuthInfo.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue