AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdatePhoneNumberRequest.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/ChimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/chime/model/PhoneNumberProductType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Chime
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CHIME_API UpdatePhoneNumberRequest() = default;
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_CHIME_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 template<typename PhoneNumberIdT = Aws::String>
43 void SetPhoneNumberId(PhoneNumberIdT&& value) { m_phoneNumberIdHasBeenSet = true; m_phoneNumberId = std::forward<PhoneNumberIdT>(value); }
44 template<typename PhoneNumberIdT = Aws::String>
45 UpdatePhoneNumberRequest& WithPhoneNumberId(PhoneNumberIdT&& value) { SetPhoneNumberId(std::forward<PhoneNumberIdT>(value)); return *this;}
47
49
52 inline PhoneNumberProductType GetProductType() const { return m_productType; }
53 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
54 inline void SetProductType(PhoneNumberProductType value) { m_productTypeHasBeenSet = true; m_productType = value; }
57
59
62 inline const Aws::String& GetCallingName() const { return m_callingName; }
63 inline bool CallingNameHasBeenSet() const { return m_callingNameHasBeenSet; }
64 template<typename CallingNameT = Aws::String>
65 void SetCallingName(CallingNameT&& value) { m_callingNameHasBeenSet = true; m_callingName = std::forward<CallingNameT>(value); }
66 template<typename CallingNameT = Aws::String>
67 UpdatePhoneNumberRequest& WithCallingName(CallingNameT&& value) { SetCallingName(std::forward<CallingNameT>(value)); return *this;}
69 private:
70
71 Aws::String m_phoneNumberId;
72 bool m_phoneNumberIdHasBeenSet = false;
73
75 bool m_productTypeHasBeenSet = false;
76
77 Aws::String m_callingName;
78 bool m_callingNameHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Chime
83} // 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