AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ContactIdT = Aws::String>
46 void SetContactId(ContactIdT&& value) { m_contactIdHasBeenSet = true; m_contactId = std::forward<ContactIdT>(value); }
47 template<typename ContactIdT = Aws::String>
48 UpdateContactRequest& WithContactId(ContactIdT&& value) { SetContactId(std::forward<ContactIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDisplayName() const { return m_displayName; }
56 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
57 template<typename DisplayNameT = Aws::String>
58 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
59 template<typename DisplayNameT = Aws::String>
60 UpdateContactRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
62
64
69 inline const Plan& GetPlan() const { return m_plan; }
70 inline bool PlanHasBeenSet() const { return m_planHasBeenSet; }
71 template<typename PlanT = Plan>
72 void SetPlan(PlanT&& value) { m_planHasBeenSet = true; m_plan = std::forward<PlanT>(value); }
73 template<typename PlanT = Plan>
74 UpdateContactRequest& WithPlan(PlanT&& value) { SetPlan(std::forward<PlanT>(value)); return *this;}
76 private:
77
78 Aws::String m_contactId;
79 bool m_contactIdHasBeenSet = false;
80
81 Aws::String m_displayName;
82 bool m_displayNameHasBeenSet = false;
83
84 Plan m_plan;
85 bool m_planHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace SSMContacts
90} // namespace Aws
UpdateContactRequest & WithContactId(ContactIdT &&value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
UpdateContactRequest & WithDisplayName(DisplayNameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateContactRequest & WithPlan(PlanT &&value)
AWS_SSMCONTACTS_API UpdateContactRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String