AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Delegate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workmail/WorkMail_EXPORTS.h>
9#include <aws/workmail/model/MemberType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WorkMail {
21namespace Model {
22
29class Delegate {
30 public:
31 AWS_WORKMAIL_API Delegate() = default;
32 AWS_WORKMAIL_API Delegate(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WORKMAIL_API Delegate& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 Delegate& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline MemberType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(MemberType value) {
62 m_typeHasBeenSet = true;
63 m_type = value;
64 }
65 inline Delegate& WithType(MemberType value) {
66 SetType(value);
67 return *this;
68 }
70 private:
71 Aws::String m_id;
72
74 bool m_idHasBeenSet = false;
75 bool m_typeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace WorkMail
80} // namespace Aws
AWS_WORKMAIL_API Delegate()=default
void SetType(MemberType value)
Definition Delegate.h:61
const Aws::String & GetId() const
Definition Delegate.h:41
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(IdT &&value)
Definition Delegate.h:44
AWS_WORKMAIL_API Delegate(Aws::Utils::Json::JsonView jsonValue)
Delegate & WithId(IdT &&value)
Definition Delegate.h:49
Delegate & WithType(MemberType value)
Definition Delegate.h:65
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