AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClaimPhoneNumberRequest.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 ClaimPhoneNumberRequest();
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 "ClaimPhoneNumber"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
44 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
45 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
46 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
47 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
48 inline ClaimPhoneNumberRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
49 inline ClaimPhoneNumberRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
50 inline ClaimPhoneNumberRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
52
54
61 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
62 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
63 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
64 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
65 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
66 inline ClaimPhoneNumberRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
67 inline ClaimPhoneNumberRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
68 inline ClaimPhoneNumberRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
70
72
76 inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
77 inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
78 inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
79 inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
80 inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
81 inline ClaimPhoneNumberRequest& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
82 inline ClaimPhoneNumberRequest& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
83 inline ClaimPhoneNumberRequest& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
85
87
90 inline const Aws::String& GetPhoneNumberDescription() const{ return m_phoneNumberDescription; }
91 inline bool PhoneNumberDescriptionHasBeenSet() const { return m_phoneNumberDescriptionHasBeenSet; }
92 inline void SetPhoneNumberDescription(const Aws::String& value) { m_phoneNumberDescriptionHasBeenSet = true; m_phoneNumberDescription = value; }
93 inline void SetPhoneNumberDescription(Aws::String&& value) { m_phoneNumberDescriptionHasBeenSet = true; m_phoneNumberDescription = std::move(value); }
94 inline void SetPhoneNumberDescription(const char* value) { m_phoneNumberDescriptionHasBeenSet = true; m_phoneNumberDescription.assign(value); }
97 inline ClaimPhoneNumberRequest& WithPhoneNumberDescription(const char* value) { SetPhoneNumberDescription(value); return *this;}
99
101
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
109 inline ClaimPhoneNumberRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
110 inline ClaimPhoneNumberRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
111 inline ClaimPhoneNumberRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
112 inline ClaimPhoneNumberRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
113 inline ClaimPhoneNumberRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
114 inline ClaimPhoneNumberRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
115 inline ClaimPhoneNumberRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
116 inline ClaimPhoneNumberRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
117 inline ClaimPhoneNumberRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
119
121
129 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
130 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
131 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
132 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
133 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
134 inline ClaimPhoneNumberRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
135 inline ClaimPhoneNumberRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
136 inline ClaimPhoneNumberRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
138 private:
139
140 Aws::String m_targetArn;
141 bool m_targetArnHasBeenSet = false;
142
143 Aws::String m_instanceId;
144 bool m_instanceIdHasBeenSet = false;
145
146 Aws::String m_phoneNumber;
147 bool m_phoneNumberHasBeenSet = false;
148
149 Aws::String m_phoneNumberDescription;
150 bool m_phoneNumberDescriptionHasBeenSet = false;
151
153 bool m_tagsHasBeenSet = false;
154
155 Aws::String m_clientToken;
156 bool m_clientTokenHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace Connect
161} // namespace Aws
ClaimPhoneNumberRequest & WithPhoneNumber(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
ClaimPhoneNumberRequest & WithClientToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ClaimPhoneNumberRequest & AddTags(const char *key, const char *value)
ClaimPhoneNumberRequest & WithInstanceId(const Aws::String &value)
ClaimPhoneNumberRequest & WithPhoneNumberDescription(const char *value)
ClaimPhoneNumberRequest & WithClientToken(const char *value)
ClaimPhoneNumberRequest & WithPhoneNumber(const char *value)
ClaimPhoneNumberRequest & WithTargetArn(Aws::String &&value)
ClaimPhoneNumberRequest & AddTags(Aws::String &&key, const char *value)
void SetPhoneNumberDescription(const Aws::String &value)
ClaimPhoneNumberRequest & WithClientToken(Aws::String &&value)
ClaimPhoneNumberRequest & WithTargetArn(const char *value)
ClaimPhoneNumberRequest & WithPhoneNumberDescription(Aws::String &&value)
ClaimPhoneNumberRequest & AddTags(Aws::String &&key, const Aws::String &value)
ClaimPhoneNumberRequest & AddTags(Aws::String &&key, Aws::String &&value)
ClaimPhoneNumberRequest & WithPhoneNumberDescription(const Aws::String &value)
ClaimPhoneNumberRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ClaimPhoneNumberRequest & WithPhoneNumber(Aws::String &&value)
ClaimPhoneNumberRequest & WithTargetArn(const Aws::String &value)
ClaimPhoneNumberRequest & WithInstanceId(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ClaimPhoneNumberRequest & WithInstanceId(const char *value)
ClaimPhoneNumberRequest & AddTags(const char *key, Aws::String &&value)
ClaimPhoneNumberRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ClaimPhoneNumberRequest & AddTags(const Aws::String &key, Aws::String &&value)
ClaimPhoneNumberRequest & AddTags(const Aws::String &key, const Aws::String &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