AWS SDK for C++  1.9.153
AWS SDK for C++
GetContactRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SESV2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetContact"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetContactListName() const{ return m_contactListName; }
39 
43  inline bool ContactListNameHasBeenSet() const { return m_contactListNameHasBeenSet; }
44 
48  inline void SetContactListName(const Aws::String& value) { m_contactListNameHasBeenSet = true; m_contactListName = value; }
49 
53  inline void SetContactListName(Aws::String&& value) { m_contactListNameHasBeenSet = true; m_contactListName = std::move(value); }
54 
58  inline void SetContactListName(const char* value) { m_contactListNameHasBeenSet = true; m_contactListName.assign(value); }
59 
63  inline GetContactRequest& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;}
64 
68  inline GetContactRequest& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;}
69 
73  inline GetContactRequest& WithContactListName(const char* value) { SetContactListName(value); return *this;}
74 
75 
79  inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
80 
84  inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
85 
89  inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
90 
94  inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
95 
99  inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
100 
104  inline GetContactRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
105 
109  inline GetContactRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
110 
114  inline GetContactRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
115 
116  private:
117 
118  Aws::String m_contactListName;
119  bool m_contactListNameHasBeenSet;
120 
121  Aws::String m_emailAddress;
122  bool m_emailAddressHasBeenSet;
123  };
124 
125 } // namespace Model
126 } // namespace SESV2
127 } // namespace Aws
Aws::SESV2::Model::GetContactRequest::WithContactListName
GetContactRequest & WithContactListName(Aws::String &&value)
Definition: GetContactRequest.h:68
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::GetContactRequest::ContactListNameHasBeenSet
bool ContactListNameHasBeenSet() const
Definition: GetContactRequest.h:43
Aws::SESV2::Model::GetContactRequest::WithEmailAddress
GetContactRequest & WithEmailAddress(const Aws::String &value)
Definition: GetContactRequest.h:104
Aws::SESV2::Model::GetContactRequest::SetContactListName
void SetContactListName(const char *value)
Definition: GetContactRequest.h:58
Aws::SESV2::Model::GetContactRequest
Definition: GetContactRequest.h:22
Aws::SESV2::Model::GetContactRequest::WithContactListName
GetContactRequest & WithContactListName(const Aws::String &value)
Definition: GetContactRequest.h:63
Aws::SESV2::Model::GetContactRequest::SetContactListName
void SetContactListName(Aws::String &&value)
Definition: GetContactRequest.h:53
Aws::SESV2::Model::GetContactRequest::GetEmailAddress
const Aws::String & GetEmailAddress() const
Definition: GetContactRequest.h:79
Aws::SESV2::Model::GetContactRequest::EmailAddressHasBeenSet
bool EmailAddressHasBeenSet() const
Definition: GetContactRequest.h:84
Aws::SESV2::Model::GetContactRequest::GetContactRequest
GetContactRequest()
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
AWSString.h
Aws::SESV2::Model::GetContactRequest::SetContactListName
void SetContactListName(const Aws::String &value)
Definition: GetContactRequest.h:48
SESV2_EXPORTS.h
Aws::SESV2::Model::GetContactRequest::WithEmailAddress
GetContactRequest & WithEmailAddress(Aws::String &&value)
Definition: GetContactRequest.h:109
Aws::SESV2::Model::GetContactRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetContactRequest.h:30
Aws::SESV2::Model::GetContactRequest::WithContactListName
GetContactRequest & WithContactListName(const char *value)
Definition: GetContactRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SESV2Request.h
Aws::SESV2::Model::GetContactRequest::SetEmailAddress
void SetEmailAddress(const char *value)
Definition: GetContactRequest.h:99
Aws::SESV2::Model::GetContactRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::GetContactRequest::GetContactListName
const Aws::String & GetContactListName() const
Definition: GetContactRequest.h:38
Aws::SESV2::Model::GetContactRequest::SetEmailAddress
void SetEmailAddress(Aws::String &&value)
Definition: GetContactRequest.h:94
Aws::SESV2::Model::GetContactRequest::SetEmailAddress
void SetEmailAddress(const Aws::String &value)
Definition: GetContactRequest.h:89
Aws::SESV2::Model::GetContactRequest::WithEmailAddress
GetContactRequest & WithEmailAddress(const char *value)
Definition: GetContactRequest.h:114