AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Delegate.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/MemberType.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 WorkMail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_WORKMAIL_API Delegate() = default;
37 AWS_WORKMAIL_API Delegate(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKMAIL_API Delegate& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 Delegate& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
59 inline MemberType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(MemberType value) { m_typeHasBeenSet = true; m_type = value; }
62 inline Delegate& WithType(MemberType value) { SetType(value); return *this;}
64 private:
65
66 Aws::String m_id;
67 bool m_idHasBeenSet = false;
68
70 bool m_typeHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace WorkMail
75} // namespace Aws
AWS_WORKMAIL_API Delegate()=default
void SetType(MemberType value)
Definition Delegate.h:61
const Aws::String & GetId() const
Definition Delegate.h:47
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(IdT &&value)
Definition Delegate.h:50
AWS_WORKMAIL_API Delegate(Aws::Utils::Json::JsonView jsonValue)
Delegate & WithId(IdT &&value)
Definition Delegate.h:52
Delegate & WithType(MemberType value)
Definition Delegate.h:62
MemberType GetType() const
Definition Delegate.h:59
AWS_WORKMAIL_API Delegate & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue