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/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();
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 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
54 inline const PhoneNumberProductType& GetProductType() const{ return m_productType; }
55 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
56 inline void SetProductType(const PhoneNumberProductType& value) { m_productTypeHasBeenSet = true; m_productType = value; }
57 inline void SetProductType(PhoneNumberProductType&& value) { m_productTypeHasBeenSet = true; m_productType = std::move(value); }
59 inline UpdatePhoneNumberRequest& WithProductType(PhoneNumberProductType&& value) { SetProductType(std::move(value)); return *this;}
61
63
66 inline const Aws::String& GetCallingName() const{ return m_callingName; }
67 inline bool CallingNameHasBeenSet() const { return m_callingNameHasBeenSet; }
68 inline void SetCallingName(const Aws::String& value) { m_callingNameHasBeenSet = true; m_callingName = value; }
69 inline void SetCallingName(Aws::String&& value) { m_callingNameHasBeenSet = true; m_callingName = std::move(value); }
70 inline void SetCallingName(const char* value) { m_callingNameHasBeenSet = true; m_callingName.assign(value); }
71 inline UpdatePhoneNumberRequest& WithCallingName(const Aws::String& value) { SetCallingName(value); return *this;}
72 inline UpdatePhoneNumberRequest& WithCallingName(Aws::String&& value) { SetCallingName(std::move(value)); return *this;}
73 inline UpdatePhoneNumberRequest& WithCallingName(const char* value) { SetCallingName(value); return *this;}
75 private:
76
77 Aws::String m_phoneNumberId;
78 bool m_phoneNumberIdHasBeenSet = false;
79
80 PhoneNumberProductType m_productType;
81 bool m_productTypeHasBeenSet = false;
82
83 Aws::String m_callingName;
84 bool m_callingNameHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Chime
89} // namespace Aws
UpdatePhoneNumberRequest & WithPhoneNumberId(const Aws::String &value)
void SetProductType(const PhoneNumberProductType &value)
virtual const char * GetServiceRequestName() const override
UpdatePhoneNumberRequest & WithPhoneNumberId(const char *value)
UpdatePhoneNumberRequest & WithCallingName(const char *value)
UpdatePhoneNumberRequest & WithCallingName(Aws::String &&value)
UpdatePhoneNumberRequest & WithPhoneNumberId(Aws::String &&value)
UpdatePhoneNumberRequest & WithProductType(const PhoneNumberProductType &value)
UpdatePhoneNumberRequest & WithProductType(PhoneNumberProductType &&value)
UpdatePhoneNumberRequest & WithCallingName(const Aws::String &value)
AWS_CHIME_API Aws::String SerializePayload() const override
const PhoneNumberProductType & GetProductType() const
void SetProductType(PhoneNumberProductType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String