AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDelegationRequest.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/auditmanager/model/RoleType.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 {
35 public:
36 AWS_AUDITMANAGER_API CreateDelegationRequest() = default;
37 AWS_AUDITMANAGER_API CreateDelegationRequest(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetComment() const { return m_comment; }
47 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
48 template<typename CommentT = Aws::String>
49 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
50 template<typename CommentT = Aws::String>
51 CreateDelegationRequest& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
53
55
58 inline const Aws::String& GetControlSetId() const { return m_controlSetId; }
59 inline bool ControlSetIdHasBeenSet() const { return m_controlSetIdHasBeenSet; }
60 template<typename ControlSetIdT = Aws::String>
61 void SetControlSetId(ControlSetIdT&& value) { m_controlSetIdHasBeenSet = true; m_controlSetId = std::forward<ControlSetIdT>(value); }
62 template<typename ControlSetIdT = Aws::String>
63 CreateDelegationRequest& WithControlSetId(ControlSetIdT&& value) { SetControlSetId(std::forward<ControlSetIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
71 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
72 template<typename RoleArnT = Aws::String>
73 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
74 template<typename RoleArnT = Aws::String>
75 CreateDelegationRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
77
79
87 inline RoleType GetRoleType() const { return m_roleType; }
88 inline bool RoleTypeHasBeenSet() const { return m_roleTypeHasBeenSet; }
89 inline void SetRoleType(RoleType value) { m_roleTypeHasBeenSet = true; m_roleType = value; }
90 inline CreateDelegationRequest& WithRoleType(RoleType value) { SetRoleType(value); return *this;}
92 private:
93
94 Aws::String m_comment;
95 bool m_commentHasBeenSet = false;
96
97 Aws::String m_controlSetId;
98 bool m_controlSetIdHasBeenSet = false;
99
100 Aws::String m_roleArn;
101 bool m_roleArnHasBeenSet = false;
102
103 RoleType m_roleType{RoleType::NOT_SET};
104 bool m_roleTypeHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace AuditManager
109} // namespace Aws
CreateDelegationRequest & WithRoleType(RoleType value)
CreateDelegationRequest & WithRoleArn(RoleArnT &&value)
AWS_AUDITMANAGER_API CreateDelegationRequest()=default
AWS_AUDITMANAGER_API CreateDelegationRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AUDITMANAGER_API CreateDelegationRequest(Aws::Utils::Json::JsonView jsonValue)
CreateDelegationRequest & WithControlSetId(ControlSetIdT &&value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
CreateDelegationRequest & WithComment(CommentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue