AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdatePhoneNumberRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace Connect
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONNECT_API UpdatePhoneNumberRequest();
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 "UpdatePhoneNumber"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetPhoneNumberId() const{ return m_phoneNumberId; }
41 inline bool PhoneNumberIdHasBeenSet() const { return m_phoneNumberIdHasBeenSet; }
42 inline void SetPhoneNumberId(const Aws::String& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = value; }
43 inline void SetPhoneNumberId(Aws::String&& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = std::move(value); }
44 inline void SetPhoneNumberId(const char* value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId.assign(value); }
45 inline UpdatePhoneNumberRequest& WithPhoneNumberId(const Aws::String& value) { SetPhoneNumberId(value); return *this;}
46 inline UpdatePhoneNumberRequest& WithPhoneNumberId(Aws::String&& value) { SetPhoneNumberId(std::move(value)); return *this;}
47 inline UpdatePhoneNumberRequest& WithPhoneNumberId(const char* value) { SetPhoneNumberId(value); return *this;}
49
51
56 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
57 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
58 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
59 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
60 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
61 inline UpdatePhoneNumberRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
62 inline UpdatePhoneNumberRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
63 inline UpdatePhoneNumberRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
65
67
74 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
75 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
76 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
77 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
78 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
79 inline UpdatePhoneNumberRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
80 inline UpdatePhoneNumberRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
81 inline UpdatePhoneNumberRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
83
85
92 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
93 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
94 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
95 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
96 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
97 inline UpdatePhoneNumberRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
98 inline UpdatePhoneNumberRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
99 inline UpdatePhoneNumberRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
101 private:
102
103 Aws::String m_phoneNumberId;
104 bool m_phoneNumberIdHasBeenSet = false;
105
106 Aws::String m_targetArn;
107 bool m_targetArnHasBeenSet = false;
108
109 Aws::String m_instanceId;
110 bool m_instanceIdHasBeenSet = false;
111
112 Aws::String m_clientToken;
113 bool m_clientTokenHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Connect
118} // namespace Aws
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdatePhoneNumberRequest & WithInstanceId(Aws::String &&value)
UpdatePhoneNumberRequest & WithPhoneNumberId(Aws::String &&value)
UpdatePhoneNumberRequest & WithTargetArn(const Aws::String &value)
UpdatePhoneNumberRequest & WithTargetArn(const char *value)
UpdatePhoneNumberRequest & WithInstanceId(const Aws::String &value)
UpdatePhoneNumberRequest & WithClientToken(Aws::String &&value)
UpdatePhoneNumberRequest & WithClientToken(const Aws::String &value)
UpdatePhoneNumberRequest & WithTargetArn(Aws::String &&value)
UpdatePhoneNumberRequest & WithClientToken(const char *value)
virtual const char * GetServiceRequestName() const override
UpdatePhoneNumberRequest & WithInstanceId(const char *value)
UpdatePhoneNumberRequest & WithPhoneNumberId(const char *value)
UpdatePhoneNumberRequest & WithPhoneNumberId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String