AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreatePhoneNumberOrderRequest.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/ChimeRequest.h>
9#include <aws/chime/model/PhoneNumberProductType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Chime
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CHIME_API CreatePhoneNumberOrderRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreatePhoneNumberOrder"; }
33
34 AWS_CHIME_API Aws::String SerializePayload() const override;
35
36
38
41 inline PhoneNumberProductType GetProductType() const { return m_productType; }
42 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
43 inline void SetProductType(PhoneNumberProductType value) { m_productTypeHasBeenSet = true; m_productType = value; }
46
48
51 inline const Aws::Vector<Aws::String>& GetE164PhoneNumbers() const { return m_e164PhoneNumbers; }
52 inline bool E164PhoneNumbersHasBeenSet() const { return m_e164PhoneNumbersHasBeenSet; }
53 template<typename E164PhoneNumbersT = Aws::Vector<Aws::String>>
54 void SetE164PhoneNumbers(E164PhoneNumbersT&& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers = std::forward<E164PhoneNumbersT>(value); }
55 template<typename E164PhoneNumbersT = Aws::Vector<Aws::String>>
56 CreatePhoneNumberOrderRequest& WithE164PhoneNumbers(E164PhoneNumbersT&& value) { SetE164PhoneNumbers(std::forward<E164PhoneNumbersT>(value)); return *this;}
57 template<typename E164PhoneNumbersT = Aws::String>
58 CreatePhoneNumberOrderRequest& AddE164PhoneNumbers(E164PhoneNumbersT&& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers.emplace_back(std::forward<E164PhoneNumbersT>(value)); return *this; }
60 private:
61
63 bool m_productTypeHasBeenSet = false;
64
65 Aws::Vector<Aws::String> m_e164PhoneNumbers;
66 bool m_e164PhoneNumbersHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace Chime
71} // namespace Aws
CreatePhoneNumberOrderRequest & WithE164PhoneNumbers(E164PhoneNumbersT &&value)
AWS_CHIME_API Aws::String SerializePayload() const override
AWS_CHIME_API CreatePhoneNumberOrderRequest()=default
const Aws::Vector< Aws::String > & GetE164PhoneNumbers() const
virtual const char * GetServiceRequestName() const override
CreatePhoneNumberOrderRequest & WithProductType(PhoneNumberProductType value)
CreatePhoneNumberOrderRequest & AddE164PhoneNumbers(E164PhoneNumbersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector