AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const PhoneNumberProductType& GetProductType() const{ return m_productType; }
42 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
43 inline void SetProductType(const PhoneNumberProductType& value) { m_productTypeHasBeenSet = true; m_productType = value; }
44 inline void SetProductType(PhoneNumberProductType&& value) { m_productTypeHasBeenSet = true; m_productType = std::move(value); }
46 inline CreatePhoneNumberOrderRequest& WithProductType(PhoneNumberProductType&& value) { SetProductType(std::move(value)); return *this;}
48
50
53 inline const Aws::Vector<Aws::String>& GetE164PhoneNumbers() const{ return m_e164PhoneNumbers; }
54 inline bool E164PhoneNumbersHasBeenSet() const { return m_e164PhoneNumbersHasBeenSet; }
55 inline void SetE164PhoneNumbers(const Aws::Vector<Aws::String>& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers = value; }
56 inline void SetE164PhoneNumbers(Aws::Vector<Aws::String>&& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers = std::move(value); }
59 inline CreatePhoneNumberOrderRequest& AddE164PhoneNumbers(const Aws::String& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers.push_back(value); return *this; }
60 inline CreatePhoneNumberOrderRequest& AddE164PhoneNumbers(Aws::String&& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers.push_back(std::move(value)); return *this; }
61 inline CreatePhoneNumberOrderRequest& AddE164PhoneNumbers(const char* value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers.push_back(value); return *this; }
63 private:
64
65 PhoneNumberProductType m_productType;
66 bool m_productTypeHasBeenSet = false;
67
68 Aws::Vector<Aws::String> m_e164PhoneNumbers;
69 bool m_e164PhoneNumbersHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Chime
74} // namespace Aws
CreatePhoneNumberOrderRequest & WithE164PhoneNumbers(const Aws::Vector< Aws::String > &value)
CreatePhoneNumberOrderRequest & AddE164PhoneNumbers(Aws::String &&value)
void SetProductType(const PhoneNumberProductType &value)
void SetE164PhoneNumbers(const Aws::Vector< Aws::String > &value)
AWS_CHIME_API Aws::String SerializePayload() const override
CreatePhoneNumberOrderRequest & WithE164PhoneNumbers(Aws::Vector< Aws::String > &&value)
CreatePhoneNumberOrderRequest & AddE164PhoneNumbers(const char *value)
CreatePhoneNumberOrderRequest & WithProductType(PhoneNumberProductType &&value)
const Aws::Vector< Aws::String > & GetE164PhoneNumbers() const
virtual const char * GetServiceRequestName() const override
CreatePhoneNumberOrderRequest & AddE164PhoneNumbers(const Aws::String &value)
CreatePhoneNumberOrderRequest & WithProductType(const PhoneNumberProductType &value)
void SetE164PhoneNumbers(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector