AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ImpersonationRoleIdT = Aws::String>
50 void SetImpersonationRoleId(ImpersonationRoleIdT&& value) { m_impersonationRoleIdHasBeenSet = true; m_impersonationRoleId = std::forward<ImpersonationRoleIdT>(value); }
51 template<typename ImpersonationRoleIdT = Aws::String>
52 ImpersonationRole& WithImpersonationRoleId(ImpersonationRoleIdT&& value) { SetImpersonationRoleId(std::forward<ImpersonationRoleIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 ImpersonationRole& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline ImpersonationRoleType GetType() const { return m_type; }
72 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
73 inline void SetType(ImpersonationRoleType value) { m_typeHasBeenSet = true; m_type = value; }
74 inline ImpersonationRole& WithType(ImpersonationRoleType value) { SetType(value); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetDateCreated() const { return m_dateCreated; }
82 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
83 template<typename DateCreatedT = Aws::Utils::DateTime>
84 void SetDateCreated(DateCreatedT&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::forward<DateCreatedT>(value); }
85 template<typename DateCreatedT = Aws::Utils::DateTime>
86 ImpersonationRole& WithDateCreated(DateCreatedT&& value) { SetDateCreated(std::forward<DateCreatedT>(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetDateModified() const { return m_dateModified; }
94 inline bool DateModifiedHasBeenSet() const { return m_dateModifiedHasBeenSet; }
95 template<typename DateModifiedT = Aws::Utils::DateTime>
96 void SetDateModified(DateModifiedT&& value) { m_dateModifiedHasBeenSet = true; m_dateModified = std::forward<DateModifiedT>(value); }
97 template<typename DateModifiedT = Aws::Utils::DateTime>
98 ImpersonationRole& WithDateModified(DateModifiedT&& value) { SetDateModified(std::forward<DateModifiedT>(value)); return *this;}
100 private:
101
102 Aws::String m_impersonationRoleId;
103 bool m_impersonationRoleIdHasBeenSet = false;
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107
109 bool m_typeHasBeenSet = false;
110
111 Aws::Utils::DateTime m_dateCreated{};
112 bool m_dateCreatedHasBeenSet = false;
113
114 Aws::Utils::DateTime m_dateModified{};
115 bool m_dateModifiedHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace WorkMail
120} // namespace Aws
const Aws::String & GetImpersonationRoleId() const
AWS_WORKMAIL_API ImpersonationRole(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetDateModified() const
ImpersonationRoleType GetType() const
void SetDateCreated(DateCreatedT &&value)
ImpersonationRole & WithType(ImpersonationRoleType value)
ImpersonationRole & WithDateCreated(DateCreatedT &&value)
void SetImpersonationRoleId(ImpersonationRoleIdT &&value)
ImpersonationRole & WithDateModified(DateModifiedT &&value)
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ImpersonationRole & WithImpersonationRoleId(ImpersonationRoleIdT &&value)
void SetDateModified(DateModifiedT &&value)
const Aws::Utils::DateTime & GetDateCreated() const
ImpersonationRole & WithName(NameT &&value)
void SetType(ImpersonationRoleType value)
AWS_WORKMAIL_API ImpersonationRole & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKMAIL_API ImpersonationRole()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue