AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportPhoneNumberRequest.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 <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Connect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECT_API ImportPhoneNumberRequest();
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 "ImportPhoneNumber"; }
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 ImportPhoneNumberRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline ImportPhoneNumberRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline ImportPhoneNumberRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
59 inline const Aws::String& GetSourcePhoneNumberArn() const{ return m_sourcePhoneNumberArn; }
60 inline bool SourcePhoneNumberArnHasBeenSet() const { return m_sourcePhoneNumberArnHasBeenSet; }
61 inline void SetSourcePhoneNumberArn(const Aws::String& value) { m_sourcePhoneNumberArnHasBeenSet = true; m_sourcePhoneNumberArn = value; }
62 inline void SetSourcePhoneNumberArn(Aws::String&& value) { m_sourcePhoneNumberArnHasBeenSet = true; m_sourcePhoneNumberArn = std::move(value); }
63 inline void SetSourcePhoneNumberArn(const char* value) { m_sourcePhoneNumberArnHasBeenSet = true; m_sourcePhoneNumberArn.assign(value); }
65 inline ImportPhoneNumberRequest& WithSourcePhoneNumberArn(Aws::String&& value) { SetSourcePhoneNumberArn(std::move(value)); return *this;}
66 inline ImportPhoneNumberRequest& WithSourcePhoneNumberArn(const char* value) { SetSourcePhoneNumberArn(value); return *this;}
68
70
73 inline const Aws::String& GetPhoneNumberDescription() const{ return m_phoneNumberDescription; }
74 inline bool PhoneNumberDescriptionHasBeenSet() const { return m_phoneNumberDescriptionHasBeenSet; }
75 inline void SetPhoneNumberDescription(const Aws::String& value) { m_phoneNumberDescriptionHasBeenSet = true; m_phoneNumberDescription = value; }
76 inline void SetPhoneNumberDescription(Aws::String&& value) { m_phoneNumberDescriptionHasBeenSet = true; m_phoneNumberDescription = std::move(value); }
77 inline void SetPhoneNumberDescription(const char* value) { m_phoneNumberDescriptionHasBeenSet = true; m_phoneNumberDescription.assign(value); }
80 inline ImportPhoneNumberRequest& WithPhoneNumberDescription(const char* value) { SetPhoneNumberDescription(value); return *this;}
82
84
88 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
91 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
92 inline ImportPhoneNumberRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
93 inline ImportPhoneNumberRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
94 inline ImportPhoneNumberRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
95 inline ImportPhoneNumberRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
96 inline ImportPhoneNumberRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
97 inline ImportPhoneNumberRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
98 inline ImportPhoneNumberRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
99 inline ImportPhoneNumberRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
100 inline ImportPhoneNumberRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
102
104
111 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
112 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
113 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
114 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
115 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
116 inline ImportPhoneNumberRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
117 inline ImportPhoneNumberRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
118 inline ImportPhoneNumberRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
120 private:
121
122 Aws::String m_instanceId;
123 bool m_instanceIdHasBeenSet = false;
124
125 Aws::String m_sourcePhoneNumberArn;
126 bool m_sourcePhoneNumberArnHasBeenSet = false;
127
128 Aws::String m_phoneNumberDescription;
129 bool m_phoneNumberDescriptionHasBeenSet = false;
130
132 bool m_tagsHasBeenSet = false;
133
134 Aws::String m_clientToken;
135 bool m_clientTokenHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace Connect
140} // namespace Aws
ImportPhoneNumberRequest & AddTags(const Aws::String &key, Aws::String &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
ImportPhoneNumberRequest & WithInstanceId(const Aws::String &value)
ImportPhoneNumberRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ImportPhoneNumberRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ImportPhoneNumberRequest & WithPhoneNumberDescription(Aws::String &&value)
ImportPhoneNumberRequest & AddTags(const char *key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ImportPhoneNumberRequest & AddTags(Aws::String &&key, const char *value)
ImportPhoneNumberRequest & WithClientToken(const char *value)
ImportPhoneNumberRequest & AddTags(const char *key, const char *value)
ImportPhoneNumberRequest & WithClientToken(Aws::String &&value)
ImportPhoneNumberRequest & WithInstanceId(const char *value)
ImportPhoneNumberRequest & WithSourcePhoneNumberArn(const Aws::String &value)
ImportPhoneNumberRequest & WithInstanceId(Aws::String &&value)
ImportPhoneNumberRequest & WithSourcePhoneNumberArn(Aws::String &&value)
ImportPhoneNumberRequest & WithClientToken(const Aws::String &value)
ImportPhoneNumberRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ImportPhoneNumberRequest & WithPhoneNumberDescription(const Aws::String &value)
ImportPhoneNumberRequest & AddTags(const Aws::String &key, const Aws::String &value)
ImportPhoneNumberRequest & WithPhoneNumberDescription(const char *value)
ImportPhoneNumberRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportPhoneNumberRequest & WithSourcePhoneNumberArn(const char *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