AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuditEventPerformedBy.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connectcases/model/UserUnion.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 ConnectCases
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CONNECTCASES_API AuditEventPerformedBy();
37 AWS_CONNECTCASES_API AuditEventPerformedBy(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetIamPrincipalArn() const{ return m_iamPrincipalArn; }
47 inline bool IamPrincipalArnHasBeenSet() const { return m_iamPrincipalArnHasBeenSet; }
48 inline void SetIamPrincipalArn(const Aws::String& value) { m_iamPrincipalArnHasBeenSet = true; m_iamPrincipalArn = value; }
49 inline void SetIamPrincipalArn(Aws::String&& value) { m_iamPrincipalArnHasBeenSet = true; m_iamPrincipalArn = std::move(value); }
50 inline void SetIamPrincipalArn(const char* value) { m_iamPrincipalArnHasBeenSet = true; m_iamPrincipalArn.assign(value); }
51 inline AuditEventPerformedBy& WithIamPrincipalArn(const Aws::String& value) { SetIamPrincipalArn(value); return *this;}
52 inline AuditEventPerformedBy& WithIamPrincipalArn(Aws::String&& value) { SetIamPrincipalArn(std::move(value)); return *this;}
53 inline AuditEventPerformedBy& WithIamPrincipalArn(const char* value) { SetIamPrincipalArn(value); return *this;}
55
57
58 inline const UserUnion& GetUser() const{ return m_user; }
59 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
60 inline void SetUser(const UserUnion& value) { m_userHasBeenSet = true; m_user = value; }
61 inline void SetUser(UserUnion&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
62 inline AuditEventPerformedBy& WithUser(const UserUnion& value) { SetUser(value); return *this;}
63 inline AuditEventPerformedBy& WithUser(UserUnion&& value) { SetUser(std::move(value)); return *this;}
65 private:
66
67 Aws::String m_iamPrincipalArn;
68 bool m_iamPrincipalArnHasBeenSet = false;
69
70 UserUnion m_user;
71 bool m_userHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace ConnectCases
76} // namespace Aws
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
AuditEventPerformedBy & WithUser(const UserUnion &value)
AuditEventPerformedBy & WithIamPrincipalArn(const Aws::String &value)
AWS_CONNECTCASES_API AuditEventPerformedBy(Aws::Utils::Json::JsonView jsonValue)
AuditEventPerformedBy & WithUser(UserUnion &&value)
AuditEventPerformedBy & WithIamPrincipalArn(const char *value)
AuditEventPerformedBy & WithIamPrincipalArn(Aws::String &&value)
AWS_CONNECTCASES_API AuditEventPerformedBy & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue