AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateContactChannelRequest.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/ContactChannelAddress.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SSMContacts
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SSMCONTACTS_API UpdateContactChannelRequest() = 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 "UpdateContactChannel"; }
32
33 AWS_SSMCONTACTS_API Aws::String SerializePayload() const override;
34
35 AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetContactChannelId() const { return m_contactChannelId; }
43 inline bool ContactChannelIdHasBeenSet() const { return m_contactChannelIdHasBeenSet; }
44 template<typename ContactChannelIdT = Aws::String>
45 void SetContactChannelId(ContactChannelIdT&& value) { m_contactChannelIdHasBeenSet = true; m_contactChannelId = std::forward<ContactChannelIdT>(value); }
46 template<typename ContactChannelIdT = Aws::String>
47 UpdateContactChannelRequest& WithContactChannelId(ContactChannelIdT&& value) { SetContactChannelId(std::forward<ContactChannelIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 UpdateContactChannelRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
67 inline const ContactChannelAddress& GetDeliveryAddress() const { return m_deliveryAddress; }
68 inline bool DeliveryAddressHasBeenSet() const { return m_deliveryAddressHasBeenSet; }
69 template<typename DeliveryAddressT = ContactChannelAddress>
70 void SetDeliveryAddress(DeliveryAddressT&& value) { m_deliveryAddressHasBeenSet = true; m_deliveryAddress = std::forward<DeliveryAddressT>(value); }
71 template<typename DeliveryAddressT = ContactChannelAddress>
72 UpdateContactChannelRequest& WithDeliveryAddress(DeliveryAddressT&& value) { SetDeliveryAddress(std::forward<DeliveryAddressT>(value)); return *this;}
74 private:
75
76 Aws::String m_contactChannelId;
77 bool m_contactChannelIdHasBeenSet = false;
78
79 Aws::String m_name;
80 bool m_nameHasBeenSet = false;
81
82 ContactChannelAddress m_deliveryAddress;
83 bool m_deliveryAddressHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace SSMContacts
88} // namespace Aws
UpdateContactChannelRequest & WithDeliveryAddress(DeliveryAddressT &&value)
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
AWS_SSMCONTACTS_API UpdateContactChannelRequest()=default
UpdateContactChannelRequest & WithContactChannelId(ContactChannelIdT &&value)
UpdateContactChannelRequest & WithName(NameT &&value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String