AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Role.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/model/RoleType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AuditManager
23{
24namespace Model
25{
26
34 class Role
35 {
36 public:
37 AWS_AUDITMANAGER_API Role();
38 AWS_AUDITMANAGER_API Role(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AUDITMANAGER_API Role& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
52 inline const RoleType& GetRoleType() const{ return m_roleType; }
53 inline bool RoleTypeHasBeenSet() const { return m_roleTypeHasBeenSet; }
54 inline void SetRoleType(const RoleType& value) { m_roleTypeHasBeenSet = true; m_roleType = value; }
55 inline void SetRoleType(RoleType&& value) { m_roleTypeHasBeenSet = true; m_roleType = std::move(value); }
56 inline Role& WithRoleType(const RoleType& value) { SetRoleType(value); return *this;}
57 inline Role& WithRoleType(RoleType&& value) { SetRoleType(std::move(value)); return *this;}
59
61
64 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
65 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
66 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
67 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
68 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
69 inline Role& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
70 inline Role& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
71 inline Role& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
73 private:
74
75 RoleType m_roleType;
76 bool m_roleTypeHasBeenSet = false;
77
78 Aws::String m_roleArn;
79 bool m_roleArnHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace AuditManager
84} // namespace Aws
void SetRoleArn(const Aws::String &value)
Definition Role.h:66
const Aws::String & GetRoleArn() const
Definition Role.h:64
AWS_AUDITMANAGER_API Role & operator=(Aws::Utils::Json::JsonView jsonValue)
Role & WithRoleType(RoleType &&value)
Definition Role.h:57
Role & WithRoleType(const RoleType &value)
Definition Role.h:56
bool RoleTypeHasBeenSet() const
Definition Role.h:53
void SetRoleType(const RoleType &value)
Definition Role.h:54
void SetRoleType(RoleType &&value)
Definition Role.h:55
void SetRoleArn(Aws::String &&value)
Definition Role.h:67
AWS_AUDITMANAGER_API Role()
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Role & WithRoleArn(Aws::String &&value)
Definition Role.h:70
const RoleType & GetRoleType() const
Definition Role.h:52
void SetRoleArn(const char *value)
Definition Role.h:68
bool RoleArnHasBeenSet() const
Definition Role.h:65
AWS_AUDITMANAGER_API Role(Aws::Utils::Json::JsonView jsonValue)
Role & WithRoleArn(const Aws::String &value)
Definition Role.h:69
Role & WithRoleArn(const char *value)
Definition Role.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue