AWS SDK for C++  1.9.153
AWS SDK for C++
UpdateUserPhoneConfigRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Connect
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 "UpdateUserPhoneConfig"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const UserPhoneConfig& GetPhoneConfig() const{ return m_phoneConfig; }
40 
44  inline bool PhoneConfigHasBeenSet() const { return m_phoneConfigHasBeenSet; }
45 
49  inline void SetPhoneConfig(const UserPhoneConfig& value) { m_phoneConfigHasBeenSet = true; m_phoneConfig = value; }
50 
54  inline void SetPhoneConfig(UserPhoneConfig&& value) { m_phoneConfigHasBeenSet = true; m_phoneConfig = std::move(value); }
55 
59  inline UpdateUserPhoneConfigRequest& WithPhoneConfig(const UserPhoneConfig& value) { SetPhoneConfig(value); return *this;}
60 
64  inline UpdateUserPhoneConfigRequest& WithPhoneConfig(UserPhoneConfig&& value) { SetPhoneConfig(std::move(value)); return *this;}
65 
66 
70  inline const Aws::String& GetUserId() const{ return m_userId; }
71 
75  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
76 
80  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
81 
85  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
86 
90  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
91 
95  inline UpdateUserPhoneConfigRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
96 
100  inline UpdateUserPhoneConfigRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
101 
105  inline UpdateUserPhoneConfigRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
106 
107 
112  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
113 
118  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
119 
124  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
125 
130  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
131 
136  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
137 
142  inline UpdateUserPhoneConfigRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
143 
148  inline UpdateUserPhoneConfigRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
149 
154  inline UpdateUserPhoneConfigRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
155 
156  private:
157 
158  UserPhoneConfig m_phoneConfig;
159  bool m_phoneConfigHasBeenSet;
160 
161  Aws::String m_userId;
162  bool m_userIdHasBeenSet;
163 
164  Aws::String m_instanceId;
165  bool m_instanceIdHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace Connect
170 } // namespace Aws
Aws::Connect::Model::UpdateUserPhoneConfigRequest::SetPhoneConfig
void SetPhoneConfig(const UserPhoneConfig &value)
Definition: UpdateUserPhoneConfigRequest.h:49
Aws::Connect::Model::UpdateUserPhoneConfigRequest::WithUserId
UpdateUserPhoneConfigRequest & WithUserId(Aws::String &&value)
Definition: UpdateUserPhoneConfigRequest.h:100
Aws::Connect::Model::UpdateUserPhoneConfigRequest::WithInstanceId
UpdateUserPhoneConfigRequest & WithInstanceId(const Aws::String &value)
Definition: UpdateUserPhoneConfigRequest.h:142
Aws::Connect::Model::UpdateUserPhoneConfigRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::UpdateUserPhoneConfigRequest::SetPhoneConfig
void SetPhoneConfig(UserPhoneConfig &&value)
Definition: UpdateUserPhoneConfigRequest.h:54
UserPhoneConfig.h
Aws::Connect::Model::UserPhoneConfig
Definition: UserPhoneConfig.h:34
Aws::Connect::Model::UpdateUserPhoneConfigRequest::WithInstanceId
UpdateUserPhoneConfigRequest & WithInstanceId(const char *value)
Definition: UpdateUserPhoneConfigRequest.h:154
Aws::Connect::Model::UpdateUserPhoneConfigRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: UpdateUserPhoneConfigRequest.h:130
Aws::Connect::Model::UpdateUserPhoneConfigRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateUserPhoneConfigRequest.h:31
Aws::Connect::Model::UpdateUserPhoneConfigRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: UpdateUserPhoneConfigRequest.h:118
Aws::Connect::Model::UpdateUserPhoneConfigRequest::SetUserId
void SetUserId(const char *value)
Definition: UpdateUserPhoneConfigRequest.h:90
Aws::Connect::Model::UpdateUserPhoneConfigRequest
Definition: UpdateUserPhoneConfigRequest.h:23
Aws::Connect::Model::UpdateUserPhoneConfigRequest::WithPhoneConfig
UpdateUserPhoneConfigRequest & WithPhoneConfig(UserPhoneConfig &&value)
Definition: UpdateUserPhoneConfigRequest.h:64
Aws::Connect::Model::UpdateUserPhoneConfigRequest::GetUserId
const Aws::String & GetUserId() const
Definition: UpdateUserPhoneConfigRequest.h:70
Aws::Connect::Model::UpdateUserPhoneConfigRequest::WithPhoneConfig
UpdateUserPhoneConfigRequest & WithPhoneConfig(const UserPhoneConfig &value)
Definition: UpdateUserPhoneConfigRequest.h:59
Aws::Connect::Model::UpdateUserPhoneConfigRequest::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: UpdateUserPhoneConfigRequest.h:75
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::UpdateUserPhoneConfigRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: UpdateUserPhoneConfigRequest.h:136
Aws::Connect::Model::UpdateUserPhoneConfigRequest::GetPhoneConfig
const UserPhoneConfig & GetPhoneConfig() const
Definition: UpdateUserPhoneConfigRequest.h:39
AWSString.h
Aws::Connect::Model::UpdateUserPhoneConfigRequest::WithUserId
UpdateUserPhoneConfigRequest & WithUserId(const Aws::String &value)
Definition: UpdateUserPhoneConfigRequest.h:95
Aws::Connect::Model::UpdateUserPhoneConfigRequest::UpdateUserPhoneConfigRequest
UpdateUserPhoneConfigRequest()
Aws::Connect::Model::UpdateUserPhoneConfigRequest::SetUserId
void SetUserId(const Aws::String &value)
Definition: UpdateUserPhoneConfigRequest.h:80
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::UpdateUserPhoneConfigRequest::WithInstanceId
UpdateUserPhoneConfigRequest & WithInstanceId(Aws::String &&value)
Definition: UpdateUserPhoneConfigRequest.h:148
Aws::Connect::Model::UpdateUserPhoneConfigRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: UpdateUserPhoneConfigRequest.h:112
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::UpdateUserPhoneConfigRequest::PhoneConfigHasBeenSet
bool PhoneConfigHasBeenSet() const
Definition: UpdateUserPhoneConfigRequest.h:44
Aws::Connect::Model::UpdateUserPhoneConfigRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: UpdateUserPhoneConfigRequest.h:124
Aws::Connect::Model::UpdateUserPhoneConfigRequest::WithUserId
UpdateUserPhoneConfigRequest & WithUserId(const char *value)
Definition: UpdateUserPhoneConfigRequest.h:105
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
ConnectRequest.h
Aws::Connect::Model::UpdateUserPhoneConfigRequest::SetUserId
void SetUserId(Aws::String &&value)
Definition: UpdateUserPhoneConfigRequest.h:85