AWS SDK for C++  1.9.104
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 SSMContacts
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 
35 
36 
40  inline const Aws::String& GetContactId() const{ return m_contactId; }
41 
45  inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
46 
50  inline void SetContactId(const Aws::String& value) { m_contactIdHasBeenSet = true; m_contactId = value; }
51 
55  inline void SetContactId(Aws::String&& value) { m_contactIdHasBeenSet = true; m_contactId = std::move(value); }
56 
60  inline void SetContactId(const char* value) { m_contactIdHasBeenSet = true; m_contactId.assign(value); }
61 
65  inline GetContactRequest& WithContactId(const Aws::String& value) { SetContactId(value); return *this;}
66 
70  inline GetContactRequest& WithContactId(Aws::String&& value) { SetContactId(std::move(value)); return *this;}
71 
75  inline GetContactRequest& WithContactId(const char* value) { SetContactId(value); return *this;}
76 
77  private:
78 
79  Aws::String m_contactId;
80  bool m_contactIdHasBeenSet;
81  };
82 
83 } // namespace Model
84 } // namespace SSMContacts
85 } // namespace Aws
Aws::SSMContacts::Model::GetContactRequest::WithContactId
GetContactRequest & WithContactId(const char *value)
Definition: GetContactRequest.h:75
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSMContacts::Model::GetContactRequest::WithContactId
GetContactRequest & WithContactId(const Aws::String &value)
Definition: GetContactRequest.h:65
Aws::SSMContacts::Model::GetContactRequest::SetContactId
void SetContactId(const Aws::String &value)
Definition: GetContactRequest.h:50
Aws::SSMContacts::Model::GetContactRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSMContacts::Model::GetContactRequest
Definition: GetContactRequest.h:22
Aws::SSMContacts::Model::GetContactRequest::SetContactId
void SetContactId(Aws::String &&value)
Definition: GetContactRequest.h:55
SSMContacts_EXPORTS.h
AWSString.h
SSMContactsRequest.h
Aws::SSMContacts::Model::GetContactRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSMContacts::Model::GetContactRequest::GetContactRequest
GetContactRequest()
Aws::SSMContacts::Model::GetContactRequest::ContactIdHasBeenSet
bool ContactIdHasBeenSet() const
Definition: GetContactRequest.h:45
Aws
Definition: AccessManagementClient.h:15
Aws::SSMContacts::Model::GetContactRequest::GetContactId
const Aws::String & GetContactId() const
Definition: GetContactRequest.h:40
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_SSMCONTACTS_API
#define AWS_SSMCONTACTS_API
Definition: SSMContacts_EXPORTS.h:28
Aws::SSMContacts::Model::GetContactRequest::WithContactId
GetContactRequest & WithContactId(Aws::String &&value)
Definition: GetContactRequest.h:70
Aws::SSMContacts::Model::GetContactRequest::SetContactId
void SetContactId(const char *value)
Definition: GetContactRequest.h:60
Aws::SSMContacts::SSMContactsRequest
Definition: SSMContactsRequest.h:17
Aws::SSMContacts::Model::GetContactRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetContactRequest.h:30