AWS SDK for C++  1.9.108
AWS SDK for C++
Delegate.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WorkMail
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetId() const{ return m_id; }
47 
52  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 
58  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 
64  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 
70  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
71 
76  inline Delegate& WithId(const Aws::String& value) { SetId(value); return *this;}
77 
82  inline Delegate& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
83 
88  inline Delegate& WithId(const char* value) { SetId(value); return *this;}
89 
90 
94  inline const MemberType& GetType() const{ return m_type; }
95 
99  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 
104  inline void SetType(const MemberType& value) { m_typeHasBeenSet = true; m_type = value; }
105 
109  inline void SetType(MemberType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
110 
114  inline Delegate& WithType(const MemberType& value) { SetType(value); return *this;}
115 
119  inline Delegate& WithType(MemberType&& value) { SetType(std::move(value)); return *this;}
120 
121  private:
122 
123  Aws::String m_id;
124  bool m_idHasBeenSet;
125 
126  MemberType m_type;
127  bool m_typeHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace WorkMail
132 } // namespace Aws
Aws::WorkMail::Model::Delegate::WithId
Delegate & WithId(const char *value)
Definition: Delegate.h:88
Aws::WorkMail::Model::Delegate::WithType
Delegate & WithType(MemberType &&value)
Definition: Delegate.h:119
Aws::WorkMail::Model::Delegate::SetId
void SetId(const Aws::String &value)
Definition: Delegate.h:58
Aws::WorkMail::Model::Delegate::operator=
Delegate & operator=(Aws::Utils::Json::JsonView jsonValue)
MemberType.h
Aws::WorkMail::Model::Delegate::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Delegate.h:52
Aws::WorkMail::Model::Delegate::SetId
void SetId(Aws::String &&value)
Definition: Delegate.h:64
WorkMail_EXPORTS.h
Aws::WorkMail::Model::Delegate::SetId
void SetId(const char *value)
Definition: Delegate.h:70
Aws::WorkMail::Model::Delegate::SetType
void SetType(const MemberType &value)
Definition: Delegate.h:104
Aws::WorkMail::Model::Delegate::GetType
const MemberType & GetType() const
Definition: Delegate.h:94
Aws::WorkMail::Model::Delegate
Definition: Delegate.h:34
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::WorkMail::Model::Delegate::GetId
const Aws::String & GetId() const
Definition: Delegate.h:46
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WorkMail::Model::Delegate::SetType
void SetType(MemberType &&value)
Definition: Delegate.h:109
Aws::WorkMail::Model::Delegate::WithType
Delegate & WithType(const MemberType &value)
Definition: Delegate.h:114
Aws::WorkMail::Model::Delegate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WorkMail::Model::Delegate::WithId
Delegate & WithId(Aws::String &&value)
Definition: Delegate.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::MemberType
MemberType
Definition: MemberType.h:17
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::Delegate::Delegate
Delegate(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::Delegate::WithId
Delegate & WithId(const Aws::String &value)
Definition: Delegate.h:76
Aws::WorkMail::Model::Delegate::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Delegate.h:99
Aws::WorkMail::Model::Delegate::Delegate
Delegate()