AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateEmergencyContactSettingsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/shield/ShieldRequest.h>
9#include <aws/shield/Shield_EXPORTS.h>
10#include <aws/shield/model/EmergencyContact.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Shield {
16namespace Model {
17
21 public:
22 AWS_SHIELD_API UpdateEmergencyContactSettingsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateEmergencyContactSettings"; }
29
30 AWS_SHIELD_API Aws::String SerializePayload() const override;
31
33
35
42 inline const Aws::Vector<EmergencyContact>& GetEmergencyContactList() const { return m_emergencyContactList; }
43 inline bool EmergencyContactListHasBeenSet() const { return m_emergencyContactListHasBeenSet; }
44 template <typename EmergencyContactListT = Aws::Vector<EmergencyContact>>
45 void SetEmergencyContactList(EmergencyContactListT&& value) {
46 m_emergencyContactListHasBeenSet = true;
47 m_emergencyContactList = std::forward<EmergencyContactListT>(value);
48 }
49 template <typename EmergencyContactListT = Aws::Vector<EmergencyContact>>
51 SetEmergencyContactList(std::forward<EmergencyContactListT>(value));
52 return *this;
53 }
54 template <typename EmergencyContactListT = EmergencyContact>
56 m_emergencyContactListHasBeenSet = true;
57 m_emergencyContactList.emplace_back(std::forward<EmergencyContactListT>(value));
58 return *this;
59 }
61 private:
62 Aws::Vector<EmergencyContact> m_emergencyContactList;
63 bool m_emergencyContactListHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace Shield
68} // namespace Aws
UpdateEmergencyContactSettingsRequest & AddEmergencyContactList(EmergencyContactListT &&value)
AWS_SHIELD_API Aws::String SerializePayload() const override
UpdateEmergencyContactSettingsRequest & WithEmergencyContactList(EmergencyContactListT &&value)
AWS_SHIELD_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
std::vector< T, Aws::Allocator< T > > Vector