AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AuditManager {
21namespace Model {
22
30class Role {
31 public:
32 AWS_AUDITMANAGER_API Role() = default;
33 AWS_AUDITMANAGER_API Role(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AUDITMANAGER_API Role& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
46 inline RoleType GetRoleType() const { return m_roleType; }
47 inline bool RoleTypeHasBeenSet() const { return m_roleTypeHasBeenSet; }
48 inline void SetRoleType(RoleType value) {
49 m_roleTypeHasBeenSet = true;
50 m_roleType = value;
51 }
52 inline Role& WithRoleType(RoleType value) {
53 SetRoleType(value);
54 return *this;
55 }
57
59
62 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
63 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
64 template <typename RoleArnT = Aws::String>
65 void SetRoleArn(RoleArnT&& value) {
66 m_roleArnHasBeenSet = true;
67 m_roleArn = std::forward<RoleArnT>(value);
68 }
69 template <typename RoleArnT = Aws::String>
70 Role& WithRoleArn(RoleArnT&& value) {
71 SetRoleArn(std::forward<RoleArnT>(value));
72 return *this;
73 }
75 private:
76 RoleType m_roleType{RoleType::NOT_SET};
77
78 Aws::String m_roleArn;
79 bool m_roleTypeHasBeenSet = false;
80 bool m_roleArnHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace AuditManager
85} // namespace Aws
RoleType GetRoleType() const
Definition Role.h:46
const Aws::String & GetRoleArn() const
Definition Role.h:62
AWS_AUDITMANAGER_API Role & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RoleTypeHasBeenSet() const
Definition Role.h:47
AWS_AUDITMANAGER_API Role()=default
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
bool RoleArnHasBeenSet() const
Definition Role.h:63
void SetRoleArn(RoleArnT &&value)
Definition Role.h:65
AWS_AUDITMANAGER_API Role(Aws::Utils::Json::JsonView jsonValue)
Role & WithRoleType(RoleType value)
Definition Role.h:52
void SetRoleType(RoleType value)
Definition Role.h:48
Role & WithRoleArn(RoleArnT &&value)
Definition Role.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue