AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImpersonationRole.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workmail/model/ImpersonationRoleType.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WorkMail
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_WORKMAIL_API ImpersonationRole();
38 AWS_WORKMAIL_API ImpersonationRole(Aws::Utils::Json::JsonView jsonValue);
40 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetImpersonationRoleId() const{ return m_impersonationRoleId; }
48 inline bool ImpersonationRoleIdHasBeenSet() const { return m_impersonationRoleIdHasBeenSet; }
49 inline void SetImpersonationRoleId(const Aws::String& value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId = value; }
50 inline void SetImpersonationRoleId(Aws::String&& value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId = std::move(value); }
51 inline void SetImpersonationRoleId(const char* value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId.assign(value); }
52 inline ImpersonationRole& WithImpersonationRoleId(const Aws::String& value) { SetImpersonationRoleId(value); return *this;}
53 inline ImpersonationRole& WithImpersonationRoleId(Aws::String&& value) { SetImpersonationRoleId(std::move(value)); return *this;}
54 inline ImpersonationRole& WithImpersonationRoleId(const char* value) { SetImpersonationRoleId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline ImpersonationRole& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline ImpersonationRole& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline ImpersonationRole& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const ImpersonationRoleType& GetType() const{ return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(const ImpersonationRoleType& value) { m_typeHasBeenSet = true; m_type = value; }
78 inline void SetType(ImpersonationRoleType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
79 inline ImpersonationRole& WithType(const ImpersonationRoleType& value) { SetType(value); return *this;}
80 inline ImpersonationRole& WithType(ImpersonationRoleType&& value) { SetType(std::move(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; }
88 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
89 inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
90 inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
91 inline ImpersonationRole& WithDateCreated(const Aws::Utils::DateTime& value) { SetDateCreated(value); return *this;}
92 inline ImpersonationRole& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;}
94
96
99 inline const Aws::Utils::DateTime& GetDateModified() const{ return m_dateModified; }
100 inline bool DateModifiedHasBeenSet() const { return m_dateModifiedHasBeenSet; }
101 inline void SetDateModified(const Aws::Utils::DateTime& value) { m_dateModifiedHasBeenSet = true; m_dateModified = value; }
102 inline void SetDateModified(Aws::Utils::DateTime&& value) { m_dateModifiedHasBeenSet = true; m_dateModified = std::move(value); }
103 inline ImpersonationRole& WithDateModified(const Aws::Utils::DateTime& value) { SetDateModified(value); return *this;}
104 inline ImpersonationRole& WithDateModified(Aws::Utils::DateTime&& value) { SetDateModified(std::move(value)); return *this;}
106 private:
107
108 Aws::String m_impersonationRoleId;
109 bool m_impersonationRoleIdHasBeenSet = false;
110
111 Aws::String m_name;
112 bool m_nameHasBeenSet = false;
113
115 bool m_typeHasBeenSet = false;
116
117 Aws::Utils::DateTime m_dateCreated;
118 bool m_dateCreatedHasBeenSet = false;
119
120 Aws::Utils::DateTime m_dateModified;
121 bool m_dateModifiedHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace WorkMail
126} // namespace Aws
const Aws::String & GetImpersonationRoleId() const
AWS_WORKMAIL_API ImpersonationRole(Aws::Utils::Json::JsonView jsonValue)
ImpersonationRole & WithName(const char *value)
void SetType(ImpersonationRoleType &&value)
const Aws::Utils::DateTime & GetDateModified() const
void SetDateCreated(const Aws::Utils::DateTime &value)
void SetDateModified(const Aws::Utils::DateTime &value)
ImpersonationRole & WithName(Aws::String &&value)
void SetDateCreated(Aws::Utils::DateTime &&value)
ImpersonationRole & WithType(const ImpersonationRoleType &value)
ImpersonationRole & WithDateCreated(Aws::Utils::DateTime &&value)
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ImpersonationRole & WithName(const Aws::String &value)
void SetImpersonationRoleId(const Aws::String &value)
ImpersonationRole & WithImpersonationRoleId(const char *value)
ImpersonationRole & WithDateModified(const Aws::Utils::DateTime &value)
const ImpersonationRoleType & GetType() const
ImpersonationRole & WithType(ImpersonationRoleType &&value)
void SetImpersonationRoleId(const char *value)
ImpersonationRole & WithImpersonationRoleId(Aws::String &&value)
void SetDateModified(Aws::Utils::DateTime &&value)
void SetName(const Aws::String &value)
ImpersonationRole & WithDateModified(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetDateCreated() const
ImpersonationRole & WithImpersonationRoleId(const Aws::String &value)
void SetType(const ImpersonationRoleType &value)
void SetImpersonationRoleId(Aws::String &&value)
AWS_WORKMAIL_API ImpersonationRole & operator=(Aws::Utils::Json::JsonView jsonValue)
ImpersonationRole & WithDateCreated(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue