AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateContactRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/connect/model/Reference.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Connect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECT_API UpdateContactRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateContact"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
46 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
47 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
48 inline UpdateContactRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline UpdateContactRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline UpdateContactRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
58 inline const Aws::String& GetContactId() const{ return m_contactId; }
59 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
60 inline void SetContactId(const Aws::String& value) { m_contactIdHasBeenSet = true; m_contactId = value; }
61 inline void SetContactId(Aws::String&& value) { m_contactIdHasBeenSet = true; m_contactId = std::move(value); }
62 inline void SetContactId(const char* value) { m_contactIdHasBeenSet = true; m_contactId.assign(value); }
63 inline UpdateContactRequest& WithContactId(const Aws::String& value) { SetContactId(value); return *this;}
64 inline UpdateContactRequest& WithContactId(Aws::String&& value) { SetContactId(std::move(value)); return *this;}
65 inline UpdateContactRequest& WithContactId(const char* value) { SetContactId(value); return *this;}
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline UpdateContactRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline UpdateContactRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline UpdateContactRequest& WithName(const char* value) { SetName(value); return *this;}
81
83
86 inline const Aws::String& GetDescription() const{ return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
89 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
90 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
91 inline UpdateContactRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
92 inline UpdateContactRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
93 inline UpdateContactRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
95
97
101 inline const Aws::Map<Aws::String, Reference>& GetReferences() const{ return m_references; }
102 inline bool ReferencesHasBeenSet() const { return m_referencesHasBeenSet; }
103 inline void SetReferences(const Aws::Map<Aws::String, Reference>& value) { m_referencesHasBeenSet = true; m_references = value; }
104 inline void SetReferences(Aws::Map<Aws::String, Reference>&& value) { m_referencesHasBeenSet = true; m_references = std::move(value); }
106 inline UpdateContactRequest& WithReferences(Aws::Map<Aws::String, Reference>&& value) { SetReferences(std::move(value)); return *this;}
107 inline UpdateContactRequest& AddReferences(const Aws::String& key, const Reference& value) { m_referencesHasBeenSet = true; m_references.emplace(key, value); return *this; }
108 inline UpdateContactRequest& AddReferences(Aws::String&& key, const Reference& value) { m_referencesHasBeenSet = true; m_references.emplace(std::move(key), value); return *this; }
109 inline UpdateContactRequest& AddReferences(const Aws::String& key, Reference&& value) { m_referencesHasBeenSet = true; m_references.emplace(key, std::move(value)); return *this; }
110 inline UpdateContactRequest& AddReferences(Aws::String&& key, Reference&& value) { m_referencesHasBeenSet = true; m_references.emplace(std::move(key), std::move(value)); return *this; }
111 inline UpdateContactRequest& AddReferences(const char* key, Reference&& value) { m_referencesHasBeenSet = true; m_references.emplace(key, std::move(value)); return *this; }
112 inline UpdateContactRequest& AddReferences(const char* key, const Reference& value) { m_referencesHasBeenSet = true; m_references.emplace(key, value); return *this; }
114 private:
115
116 Aws::String m_instanceId;
117 bool m_instanceIdHasBeenSet = false;
118
119 Aws::String m_contactId;
120 bool m_contactIdHasBeenSet = false;
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 Aws::String m_description;
126 bool m_descriptionHasBeenSet = false;
127
129 bool m_referencesHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Connect
134} // namespace Aws
UpdateContactRequest & WithInstanceId(const char *value)
UpdateContactRequest & AddReferences(Aws::String &&key, const Reference &value)
UpdateContactRequest & WithInstanceId(Aws::String &&value)
UpdateContactRequest & WithName(Aws::String &&value)
UpdateContactRequest & WithDescription(const char *value)
UpdateContactRequest & WithDescription(const Aws::String &value)
void SetReferences(const Aws::Map< Aws::String, Reference > &value)
virtual const char * GetServiceRequestName() const override
UpdateContactRequest & AddReferences(const char *key, const Reference &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateContactRequest & WithReferences(Aws::Map< Aws::String, Reference > &&value)
void SetContactId(const Aws::String &value)
UpdateContactRequest & WithContactId(const Aws::String &value)
UpdateContactRequest & AddReferences(const Aws::String &key, Reference &&value)
UpdateContactRequest & WithContactId(const char *value)
UpdateContactRequest & WithName(const char *value)
const Aws::Map< Aws::String, Reference > & GetReferences() const
UpdateContactRequest & WithContactId(Aws::String &&value)
void SetReferences(Aws::Map< Aws::String, Reference > &&value)
UpdateContactRequest & WithName(const Aws::String &value)
void SetDescription(const Aws::String &value)
void SetInstanceId(const Aws::String &value)
UpdateContactRequest & AddReferences(Aws::String &&key, Reference &&value)
UpdateContactRequest & WithReferences(const Aws::Map< Aws::String, Reference > &value)
UpdateContactRequest & WithInstanceId(const Aws::String &value)
UpdateContactRequest & AddReferences(const Aws::String &key, const Reference &value)
UpdateContactRequest & WithDescription(Aws::String &&value)
UpdateContactRequest & AddReferences(const char *key, Reference &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String