AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContactChannelId(const Aws::String& value) { m_contactChannelIdHasBeenSet = true; m_contactChannelId = value; }
45 inline void SetContactChannelId(Aws::String&& value) { m_contactChannelIdHasBeenSet = true; m_contactChannelId = std::move(value); }
46 inline void SetContactChannelId(const char* value) { m_contactChannelIdHasBeenSet = true; m_contactChannelId.assign(value); }
48 inline UpdateContactChannelRequest& WithContactChannelId(Aws::String&& value) { SetContactChannelId(std::move(value)); return *this;}
49 inline UpdateContactChannelRequest& WithContactChannelId(const char* value) { SetContactChannelId(value); return *this;}
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline UpdateContactChannelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline UpdateContactChannelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline UpdateContactChannelRequest& WithName(const char* value) { SetName(value); return *this;}
65
67
71 inline const ContactChannelAddress& GetDeliveryAddress() const{ return m_deliveryAddress; }
72 inline bool DeliveryAddressHasBeenSet() const { return m_deliveryAddressHasBeenSet; }
73 inline void SetDeliveryAddress(const ContactChannelAddress& value) { m_deliveryAddressHasBeenSet = true; m_deliveryAddress = value; }
74 inline void SetDeliveryAddress(ContactChannelAddress&& value) { m_deliveryAddressHasBeenSet = true; m_deliveryAddress = std::move(value); }
78 private:
79
80 Aws::String m_contactChannelId;
81 bool m_contactChannelIdHasBeenSet = false;
82
83 Aws::String m_name;
84 bool m_nameHasBeenSet = false;
85
86 ContactChannelAddress m_deliveryAddress;
87 bool m_deliveryAddressHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SSMContacts
92} // namespace Aws
UpdateContactChannelRequest & WithName(Aws::String &&value)
UpdateContactChannelRequest & WithName(const char *value)
UpdateContactChannelRequest & WithContactChannelId(Aws::String &&value)
UpdateContactChannelRequest & WithDeliveryAddress(ContactChannelAddress &&value)
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
UpdateContactChannelRequest & WithName(const Aws::String &value)
UpdateContactChannelRequest & WithContactChannelId(const Aws::String &value)
void SetDeliveryAddress(const ContactChannelAddress &value)
UpdateContactChannelRequest & WithContactChannelId(const char *value)
UpdateContactChannelRequest & WithDeliveryAddress(const ContactChannelAddress &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