AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserInfo.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeCommit
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODECOMMIT_API UserInfo();
36 AWS_CODECOMMIT_API UserInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECOMMIT_API UserInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline UserInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline UserInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline UserInfo& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetEmail() const{ return m_email; }
60 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
61 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
62 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
63 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
64 inline UserInfo& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
65 inline UserInfo& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
66 inline UserInfo& WithEmail(const char* value) { SetEmail(value); return *this;}
68
70
74 inline const Aws::String& GetDate() const{ return m_date; }
75 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
76 inline void SetDate(const Aws::String& value) { m_dateHasBeenSet = true; m_date = value; }
77 inline void SetDate(Aws::String&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
78 inline void SetDate(const char* value) { m_dateHasBeenSet = true; m_date.assign(value); }
79 inline UserInfo& WithDate(const Aws::String& value) { SetDate(value); return *this;}
80 inline UserInfo& WithDate(Aws::String&& value) { SetDate(std::move(value)); return *this;}
81 inline UserInfo& WithDate(const char* value) { SetDate(value); return *this;}
83 private:
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87
88 Aws::String m_email;
89 bool m_emailHasBeenSet = false;
90
91 Aws::String m_date;
92 bool m_dateHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CodeCommit
97} // namespace Aws
const Aws::String & GetDate() const
Definition UserInfo.h:74
void SetDate(const char *value)
Definition UserInfo.h:78
void SetName(const Aws::String &value)
Definition UserInfo.h:47
UserInfo & WithEmail(const Aws::String &value)
Definition UserInfo.h:64
void SetName(Aws::String &&value)
Definition UserInfo.h:48
void SetDate(const Aws::String &value)
Definition UserInfo.h:76
UserInfo & WithDate(const char *value)
Definition UserInfo.h:81
AWS_CODECOMMIT_API UserInfo()
AWS_CODECOMMIT_API UserInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEmail(const char *value)
Definition UserInfo.h:63
void SetName(const char *value)
Definition UserInfo.h:49
UserInfo & WithEmail(Aws::String &&value)
Definition UserInfo.h:65
void SetEmail(Aws::String &&value)
Definition UserInfo.h:62
UserInfo & WithEmail(const char *value)
Definition UserInfo.h:66
UserInfo & WithDate(const Aws::String &value)
Definition UserInfo.h:79
UserInfo & WithName(const char *value)
Definition UserInfo.h:52
AWS_CODECOMMIT_API UserInfo(Aws::Utils::Json::JsonView jsonValue)
void SetEmail(const Aws::String &value)
Definition UserInfo.h:61
UserInfo & WithName(Aws::String &&value)
Definition UserInfo.h:51
UserInfo & WithDate(Aws::String &&value)
Definition UserInfo.h:80
void SetDate(Aws::String &&value)
Definition UserInfo.h:77
const Aws::String & GetName() const
Definition UserInfo.h:45
const Aws::String & GetEmail() const
Definition UserInfo.h:59
UserInfo & WithName(const Aws::String &value)
Definition UserInfo.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue