AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateDelegationRequest.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
30 public:
31 AWS_AUDITMANAGER_API CreateDelegationRequest() = default;
32 AWS_AUDITMANAGER_API CreateDelegationRequest(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetComment() const { return m_comment; }
41 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
42 template <typename CommentT = Aws::String>
43 void SetComment(CommentT&& value) {
44 m_commentHasBeenSet = true;
45 m_comment = std::forward<CommentT>(value);
46 }
47 template <typename CommentT = Aws::String>
49 SetComment(std::forward<CommentT>(value));
50 return *this;
51 }
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) {
62 m_controlSetIdHasBeenSet = true;
63 m_controlSetId = std::forward<ControlSetIdT>(value);
64 }
65 template <typename ControlSetIdT = Aws::String>
66 CreateDelegationRequest& WithControlSetId(ControlSetIdT&& value) {
67 SetControlSetId(std::forward<ControlSetIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
77 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
78 template <typename RoleArnT = Aws::String>
79 void SetRoleArn(RoleArnT&& value) {
80 m_roleArnHasBeenSet = true;
81 m_roleArn = std::forward<RoleArnT>(value);
82 }
83 template <typename RoleArnT = Aws::String>
85 SetRoleArn(std::forward<RoleArnT>(value));
86 return *this;
87 }
89
91
99 inline RoleType GetRoleType() const { return m_roleType; }
100 inline bool RoleTypeHasBeenSet() const { return m_roleTypeHasBeenSet; }
101 inline void SetRoleType(RoleType value) {
102 m_roleTypeHasBeenSet = true;
103 m_roleType = value;
104 }
106 SetRoleType(value);
107 return *this;
108 }
110 private:
111 Aws::String m_comment;
112
113 Aws::String m_controlSetId;
114
115 Aws::String m_roleArn;
116
117 RoleType m_roleType{RoleType::NOT_SET};
118 bool m_commentHasBeenSet = false;
119 bool m_controlSetIdHasBeenSet = false;
120 bool m_roleArnHasBeenSet = false;
121 bool m_roleTypeHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace AuditManager
126} // 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