AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdatePhoneNumberRequest.h
1
6#pragma once
7#include <aws/chime/ChimeRequest.h>
8#include <aws/chime/Chime_EXPORTS.h>
9#include <aws/chime/model/PhoneNumberProductType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Chime {
16namespace Model {
17
21 public:
22 AWS_CHIME_API UpdatePhoneNumberRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdatePhoneNumber"; }
29
30 AWS_CHIME_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetPhoneNumberId() const { return m_phoneNumberId; }
37 inline bool PhoneNumberIdHasBeenSet() const { return m_phoneNumberIdHasBeenSet; }
38 template <typename PhoneNumberIdT = Aws::String>
39 void SetPhoneNumberId(PhoneNumberIdT&& value) {
40 m_phoneNumberIdHasBeenSet = true;
41 m_phoneNumberId = std::forward<PhoneNumberIdT>(value);
42 }
43 template <typename PhoneNumberIdT = Aws::String>
45 SetPhoneNumberId(std::forward<PhoneNumberIdT>(value));
46 return *this;
47 }
49
51
54 inline PhoneNumberProductType GetProductType() const { return m_productType; }
55 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
57 m_productTypeHasBeenSet = true;
58 m_productType = value;
59 }
61 SetProductType(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetCallingName() const { return m_callingName; }
71 inline bool CallingNameHasBeenSet() const { return m_callingNameHasBeenSet; }
72 template <typename CallingNameT = Aws::String>
73 void SetCallingName(CallingNameT&& value) {
74 m_callingNameHasBeenSet = true;
75 m_callingName = std::forward<CallingNameT>(value);
76 }
77 template <typename CallingNameT = Aws::String>
79 SetCallingName(std::forward<CallingNameT>(value));
80 return *this;
81 }
83 private:
84 Aws::String m_phoneNumberId;
85
87
88 Aws::String m_callingName;
89 bool m_phoneNumberIdHasBeenSet = false;
90 bool m_productTypeHasBeenSet = false;
91 bool m_callingNameHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace Chime
96} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdatePhoneNumberRequest & WithProductType(PhoneNumberProductType value)
void SetProductType(PhoneNumberProductType value)
UpdatePhoneNumberRequest & WithCallingName(CallingNameT &&value)
UpdatePhoneNumberRequest & WithPhoneNumberId(PhoneNumberIdT &&value)
AWS_CHIME_API Aws::String SerializePayload() const override
AWS_CHIME_API UpdatePhoneNumberRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String