AWS SDK for C++  1.9.158
AWS SDK for C++
UpdateEmergencyContactSettingsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Shield
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "UpdateEmergencyContactSettings"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
45  inline const Aws::Vector<EmergencyContact>& GetEmergencyContactList() const{ return m_emergencyContactList; }
46 
54  inline bool EmergencyContactListHasBeenSet() const { return m_emergencyContactListHasBeenSet; }
55 
63  inline void SetEmergencyContactList(const Aws::Vector<EmergencyContact>& value) { m_emergencyContactListHasBeenSet = true; m_emergencyContactList = value; }
64 
72  inline void SetEmergencyContactList(Aws::Vector<EmergencyContact>&& value) { m_emergencyContactListHasBeenSet = true; m_emergencyContactList = std::move(value); }
73 
81  inline UpdateEmergencyContactSettingsRequest& WithEmergencyContactList(const Aws::Vector<EmergencyContact>& value) { SetEmergencyContactList(value); return *this;}
82 
90  inline UpdateEmergencyContactSettingsRequest& WithEmergencyContactList(Aws::Vector<EmergencyContact>&& value) { SetEmergencyContactList(std::move(value)); return *this;}
91 
99  inline UpdateEmergencyContactSettingsRequest& AddEmergencyContactList(const EmergencyContact& value) { m_emergencyContactListHasBeenSet = true; m_emergencyContactList.push_back(value); return *this; }
100 
108  inline UpdateEmergencyContactSettingsRequest& AddEmergencyContactList(EmergencyContact&& value) { m_emergencyContactListHasBeenSet = true; m_emergencyContactList.push_back(std::move(value)); return *this; }
109 
110  private:
111 
112  Aws::Vector<EmergencyContact> m_emergencyContactList;
113  bool m_emergencyContactListHasBeenSet;
114  };
115 
116 } // namespace Model
117 } // namespace Shield
118 } // namespace Aws
Aws::Shield::Model::EmergencyContact
Definition: EmergencyContact.h:34
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest::SetEmergencyContactList
void SetEmergencyContactList(Aws::Vector< EmergencyContact > &&value)
Definition: UpdateEmergencyContactSettingsRequest.h:72
ShieldRequest.h
AWS_SHIELD_API
#define AWS_SHIELD_API
Definition: Shield_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest::GetEmergencyContactList
const Aws::Vector< EmergencyContact > & GetEmergencyContactList() const
Definition: UpdateEmergencyContactSettingsRequest.h:45
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest::SetEmergencyContactList
void SetEmergencyContactList(const Aws::Vector< EmergencyContact > &value)
Definition: UpdateEmergencyContactSettingsRequest.h:63
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest::AddEmergencyContactList
UpdateEmergencyContactSettingsRequest & AddEmergencyContactList(EmergencyContact &&value)
Definition: UpdateEmergencyContactSettingsRequest.h:108
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSVector.h
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Shield::ShieldRequest
Definition: ShieldRequest.h:17
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest::UpdateEmergencyContactSettingsRequest
UpdateEmergencyContactSettingsRequest()
Shield_EXPORTS.h
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest::WithEmergencyContactList
UpdateEmergencyContactSettingsRequest & WithEmergencyContactList(Aws::Vector< EmergencyContact > &&value)
Definition: UpdateEmergencyContactSettingsRequest.h:90
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest
Definition: UpdateEmergencyContactSettingsRequest.h:23
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest::EmergencyContactListHasBeenSet
bool EmergencyContactListHasBeenSet() const
Definition: UpdateEmergencyContactSettingsRequest.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EmergencyContact.h
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest::WithEmergencyContactList
UpdateEmergencyContactSettingsRequest & WithEmergencyContactList(const Aws::Vector< EmergencyContact > &value)
Definition: UpdateEmergencyContactSettingsRequest.h:81
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest::AddEmergencyContactList
UpdateEmergencyContactSettingsRequest & AddEmergencyContactList(const EmergencyContact &value)
Definition: UpdateEmergencyContactSettingsRequest.h:99
Aws::Shield::Model::UpdateEmergencyContactSettingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateEmergencyContactSettingsRequest.h:31