AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PhoneNumberOrder.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chime/model/PhoneNumberProductType.h>
10#include <aws/chime/model/PhoneNumberOrderStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/chime/model/OrderedPhoneNumber.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Chime
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_CHIME_API PhoneNumberOrder();
43 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetPhoneNumberOrderId() const{ return m_phoneNumberOrderId; }
51 inline bool PhoneNumberOrderIdHasBeenSet() const { return m_phoneNumberOrderIdHasBeenSet; }
52 inline void SetPhoneNumberOrderId(const Aws::String& value) { m_phoneNumberOrderIdHasBeenSet = true; m_phoneNumberOrderId = value; }
53 inline void SetPhoneNumberOrderId(Aws::String&& value) { m_phoneNumberOrderIdHasBeenSet = true; m_phoneNumberOrderId = std::move(value); }
54 inline void SetPhoneNumberOrderId(const char* value) { m_phoneNumberOrderIdHasBeenSet = true; m_phoneNumberOrderId.assign(value); }
55 inline PhoneNumberOrder& WithPhoneNumberOrderId(const Aws::String& value) { SetPhoneNumberOrderId(value); return *this;}
56 inline PhoneNumberOrder& WithPhoneNumberOrderId(Aws::String&& value) { SetPhoneNumberOrderId(std::move(value)); return *this;}
57 inline PhoneNumberOrder& WithPhoneNumberOrderId(const char* value) { SetPhoneNumberOrderId(value); return *this;}
59
61
64 inline const PhoneNumberProductType& GetProductType() const{ return m_productType; }
65 inline bool ProductTypeHasBeenSet() const { return m_productTypeHasBeenSet; }
66 inline void SetProductType(const PhoneNumberProductType& value) { m_productTypeHasBeenSet = true; m_productType = value; }
67 inline void SetProductType(PhoneNumberProductType&& value) { m_productTypeHasBeenSet = true; m_productType = std::move(value); }
68 inline PhoneNumberOrder& WithProductType(const PhoneNumberProductType& value) { SetProductType(value); return *this;}
69 inline PhoneNumberOrder& WithProductType(PhoneNumberProductType&& value) { SetProductType(std::move(value)); return *this;}
71
73
76 inline const PhoneNumberOrderStatus& GetStatus() const{ return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(const PhoneNumberOrderStatus& value) { m_statusHasBeenSet = true; m_status = value; }
79 inline void SetStatus(PhoneNumberOrderStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
80 inline PhoneNumberOrder& WithStatus(const PhoneNumberOrderStatus& value) { SetStatus(value); return *this;}
81 inline PhoneNumberOrder& WithStatus(PhoneNumberOrderStatus&& value) { SetStatus(std::move(value)); return *this;}
83
85
89 inline const Aws::Vector<OrderedPhoneNumber>& GetOrderedPhoneNumbers() const{ return m_orderedPhoneNumbers; }
90 inline bool OrderedPhoneNumbersHasBeenSet() const { return m_orderedPhoneNumbersHasBeenSet; }
91 inline void SetOrderedPhoneNumbers(const Aws::Vector<OrderedPhoneNumber>& value) { m_orderedPhoneNumbersHasBeenSet = true; m_orderedPhoneNumbers = value; }
92 inline void SetOrderedPhoneNumbers(Aws::Vector<OrderedPhoneNumber>&& value) { m_orderedPhoneNumbersHasBeenSet = true; m_orderedPhoneNumbers = std::move(value); }
95 inline PhoneNumberOrder& AddOrderedPhoneNumbers(const OrderedPhoneNumber& value) { m_orderedPhoneNumbersHasBeenSet = true; m_orderedPhoneNumbers.push_back(value); return *this; }
96 inline PhoneNumberOrder& AddOrderedPhoneNumbers(OrderedPhoneNumber&& value) { m_orderedPhoneNumbersHasBeenSet = true; m_orderedPhoneNumbers.push_back(std::move(value)); return *this; }
98
100
103 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
104 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
105 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
106 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
108 inline PhoneNumberOrder& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const{ return m_updatedTimestamp; }
116 inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; }
117 inline void SetUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = value; }
118 inline void SetUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::move(value); }
120 inline PhoneNumberOrder& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_phoneNumberOrderId;
125 bool m_phoneNumberOrderIdHasBeenSet = false;
126
127 PhoneNumberProductType m_productType;
128 bool m_productTypeHasBeenSet = false;
129
130 PhoneNumberOrderStatus m_status;
131 bool m_statusHasBeenSet = false;
132
133 Aws::Vector<OrderedPhoneNumber> m_orderedPhoneNumbers;
134 bool m_orderedPhoneNumbersHasBeenSet = false;
135
136 Aws::Utils::DateTime m_createdTimestamp;
137 bool m_createdTimestampHasBeenSet = false;
138
139 Aws::Utils::DateTime m_updatedTimestamp;
140 bool m_updatedTimestampHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace Chime
145} // namespace Aws
void SetProductType(const PhoneNumberProductType &value)
PhoneNumberOrder & WithStatus(const PhoneNumberOrderStatus &value)
void SetUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetPhoneNumberOrderId(const char *value)
void SetProductType(PhoneNumberProductType &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
const Aws::Utils::DateTime & GetUpdatedTimestamp() const
const PhoneNumberOrderStatus & GetStatus() const
void SetOrderedPhoneNumbers(Aws::Vector< OrderedPhoneNumber > &&value)
PhoneNumberOrder & WithProductType(const PhoneNumberProductType &value)
PhoneNumberOrder & WithUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetCreatedTimestamp(const Aws::Utils::DateTime &value)
void SetStatus(const PhoneNumberOrderStatus &value)
void SetOrderedPhoneNumbers(const Aws::Vector< OrderedPhoneNumber > &value)
PhoneNumberOrder & WithPhoneNumberOrderId(const Aws::String &value)
PhoneNumberOrder & AddOrderedPhoneNumbers(OrderedPhoneNumber &&value)
void SetPhoneNumberOrderId(Aws::String &&value)
const Aws::String & GetPhoneNumberOrderId() const
void SetUpdatedTimestamp(Aws::Utils::DateTime &&value)
PhoneNumberOrder & WithStatus(PhoneNumberOrderStatus &&value)
PhoneNumberOrder & WithUpdatedTimestamp(const Aws::Utils::DateTime &value)
const Aws::Vector< OrderedPhoneNumber > & GetOrderedPhoneNumbers() const
PhoneNumberOrder & WithOrderedPhoneNumbers(Aws::Vector< OrderedPhoneNumber > &&value)
PhoneNumberOrder & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
void SetStatus(PhoneNumberOrderStatus &&value)
void SetCreatedTimestamp(Aws::Utils::DateTime &&value)
PhoneNumberOrder & WithPhoneNumberOrderId(const char *value)
AWS_CHIME_API PhoneNumberOrder(Aws::Utils::Json::JsonView jsonValue)
PhoneNumberOrder & WithPhoneNumberOrderId(Aws::String &&value)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
PhoneNumberOrder & WithProductType(PhoneNumberProductType &&value)
PhoneNumberOrder & WithOrderedPhoneNumbers(const Aws::Vector< OrderedPhoneNumber > &value)
AWS_CHIME_API PhoneNumberOrder & operator=(Aws::Utils::Json::JsonView jsonValue)
PhoneNumberOrder & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
const PhoneNumberProductType & GetProductType() const
PhoneNumberOrder & AddOrderedPhoneNumbers(const OrderedPhoneNumber &value)
void SetPhoneNumberOrderId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue