AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateContactRequest.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/ssm-contacts/SSMContactsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm-contacts/model/Plan.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SSMContacts
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SSMCONTACTS_API UpdateContactRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateContact"; }
32
33 AWS_SSMCONTACTS_API Aws::String SerializePayload() const override;
34
35 AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetContactId() const{ return m_contactId; }
44 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
45 inline void SetContactId(const Aws::String& value) { m_contactIdHasBeenSet = true; m_contactId = value; }
46 inline void SetContactId(Aws::String&& value) { m_contactIdHasBeenSet = true; m_contactId = std::move(value); }
47 inline void SetContactId(const char* value) { m_contactIdHasBeenSet = true; m_contactId.assign(value); }
48 inline UpdateContactRequest& WithContactId(const Aws::String& value) { SetContactId(value); return *this;}
49 inline UpdateContactRequest& WithContactId(Aws::String&& value) { SetContactId(std::move(value)); return *this;}
50 inline UpdateContactRequest& WithContactId(const char* value) { SetContactId(value); return *this;}
52
54
57 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
58 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
59 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
60 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
61 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
62 inline UpdateContactRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
63 inline UpdateContactRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
64 inline UpdateContactRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
66
68
73 inline const Plan& GetPlan() const{ return m_plan; }
74 inline bool PlanHasBeenSet() const { return m_planHasBeenSet; }
75 inline void SetPlan(const Plan& value) { m_planHasBeenSet = true; m_plan = value; }
76 inline void SetPlan(Plan&& value) { m_planHasBeenSet = true; m_plan = std::move(value); }
77 inline UpdateContactRequest& WithPlan(const Plan& value) { SetPlan(value); return *this;}
78 inline UpdateContactRequest& WithPlan(Plan&& value) { SetPlan(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_contactId;
83 bool m_contactIdHasBeenSet = false;
84
85 Aws::String m_displayName;
86 bool m_displayNameHasBeenSet = false;
87
88 Plan m_plan;
89 bool m_planHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace SSMContacts
94} // namespace Aws
UpdateContactRequest & WithDisplayName(const char *value)
UpdateContactRequest & WithDisplayName(const Aws::String &value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
UpdateContactRequest & WithContactId(const Aws::String &value)
UpdateContactRequest & WithPlan(Plan &&value)
UpdateContactRequest & WithDisplayName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateContactRequest & WithContactId(Aws::String &&value)
UpdateContactRequest & WithPlan(const Plan &value)
UpdateContactRequest & WithContactId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String