AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
49 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
50 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
51 inline CreateDelegationRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
52 inline CreateDelegationRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
53 inline CreateDelegationRequest& WithComment(const char* value) { SetComment(value); return *this;}
55
57
60 inline const Aws::String& GetControlSetId() const{ return m_controlSetId; }
61 inline bool ControlSetIdHasBeenSet() const { return m_controlSetIdHasBeenSet; }
62 inline void SetControlSetId(const Aws::String& value) { m_controlSetIdHasBeenSet = true; m_controlSetId = value; }
63 inline void SetControlSetId(Aws::String&& value) { m_controlSetIdHasBeenSet = true; m_controlSetId = std::move(value); }
64 inline void SetControlSetId(const char* value) { m_controlSetIdHasBeenSet = true; m_controlSetId.assign(value); }
65 inline CreateDelegationRequest& WithControlSetId(const Aws::String& value) { SetControlSetId(value); return *this;}
66 inline CreateDelegationRequest& WithControlSetId(Aws::String&& value) { SetControlSetId(std::move(value)); return *this;}
67 inline CreateDelegationRequest& WithControlSetId(const char* value) { SetControlSetId(value); return *this;}
69
71
74 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
75 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
76 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
77 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
78 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
79 inline CreateDelegationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
80 inline CreateDelegationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
81 inline CreateDelegationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
83
85
93 inline const RoleType& GetRoleType() const{ return m_roleType; }
94 inline bool RoleTypeHasBeenSet() const { return m_roleTypeHasBeenSet; }
95 inline void SetRoleType(const RoleType& value) { m_roleTypeHasBeenSet = true; m_roleType = value; }
96 inline void SetRoleType(RoleType&& value) { m_roleTypeHasBeenSet = true; m_roleType = std::move(value); }
97 inline CreateDelegationRequest& WithRoleType(const RoleType& value) { SetRoleType(value); return *this;}
98 inline CreateDelegationRequest& WithRoleType(RoleType&& value) { SetRoleType(std::move(value)); return *this;}
100 private:
101
102 Aws::String m_comment;
103 bool m_commentHasBeenSet = false;
104
105 Aws::String m_controlSetId;
106 bool m_controlSetIdHasBeenSet = false;
107
108 Aws::String m_roleArn;
109 bool m_roleArnHasBeenSet = false;
110
111 RoleType m_roleType;
112 bool m_roleTypeHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace AuditManager
117} // namespace Aws
CreateDelegationRequest & WithRoleArn(Aws::String &&value)
CreateDelegationRequest & WithControlSetId(Aws::String &&value)
AWS_AUDITMANAGER_API CreateDelegationRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateDelegationRequest & WithComment(const Aws::String &value)
CreateDelegationRequest & WithComment(Aws::String &&value)
CreateDelegationRequest & WithRoleType(RoleType &&value)
AWS_AUDITMANAGER_API CreateDelegationRequest(Aws::Utils::Json::JsonView jsonValue)
CreateDelegationRequest & WithComment(const char *value)
CreateDelegationRequest & WithRoleType(const RoleType &value)
CreateDelegationRequest & WithRoleArn(const char *value)
CreateDelegationRequest & WithControlSetId(const Aws::String &value)
CreateDelegationRequest & WithControlSetId(const char *value)
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
CreateDelegationRequest & WithRoleArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue