/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A list of phone numbers and their metadata.See Also:
AWS
* API Reference
The date and time when the phone number was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The date and time when the phone number was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The date and time when the phone number was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The date and time when the phone number was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The date and time when the phone number was created.
*/ inline PhoneNumberInformation& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The date and time when the phone number was created.
*/ inline PhoneNumberInformation& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The phone number.
*/ inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; } /** *The phone number.
*/ inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; } /** *The phone number.
*/ inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; } /** *The phone number.
*/ inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); } /** *The phone number.
*/ inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); } /** *The phone number.
*/ inline PhoneNumberInformation& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;} /** *The phone number.
*/ inline PhoneNumberInformation& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;} /** *The phone number.
*/ inline PhoneNumberInformation& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;} /** *The status of the phone number.
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *The status of the phone number.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the phone number.
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the phone number.
*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the phone number.
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *The status of the phone number.
*/ inline PhoneNumberInformation& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *The status of the phone number.
*/ inline PhoneNumberInformation& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *The status of the phone number.
*/ inline PhoneNumberInformation& WithStatus(const char* value) { SetStatus(value); return *this;} /** *The two-character code for the country or region, in ISO 3166-1 alpha-2 * format.
*/ inline const Aws::String& GetIso2CountryCode() const{ return m_iso2CountryCode; } /** *The two-character code for the country or region, in ISO 3166-1 alpha-2 * format.
*/ inline bool Iso2CountryCodeHasBeenSet() const { return m_iso2CountryCodeHasBeenSet; } /** *The two-character code for the country or region, in ISO 3166-1 alpha-2 * format.
*/ inline void SetIso2CountryCode(const Aws::String& value) { m_iso2CountryCodeHasBeenSet = true; m_iso2CountryCode = value; } /** *The two-character code for the country or region, in ISO 3166-1 alpha-2 * format.
*/ inline void SetIso2CountryCode(Aws::String&& value) { m_iso2CountryCodeHasBeenSet = true; m_iso2CountryCode = std::move(value); } /** *The two-character code for the country or region, in ISO 3166-1 alpha-2 * format.
*/ inline void SetIso2CountryCode(const char* value) { m_iso2CountryCodeHasBeenSet = true; m_iso2CountryCode.assign(value); } /** *The two-character code for the country or region, in ISO 3166-1 alpha-2 * format.
*/ inline PhoneNumberInformation& WithIso2CountryCode(const Aws::String& value) { SetIso2CountryCode(value); return *this;} /** *The two-character code for the country or region, in ISO 3166-1 alpha-2 * format.
*/ inline PhoneNumberInformation& WithIso2CountryCode(Aws::String&& value) { SetIso2CountryCode(std::move(value)); return *this;} /** *The two-character code for the country or region, in ISO 3166-1 alpha-2 * format.
*/ inline PhoneNumberInformation& WithIso2CountryCode(const char* value) { SetIso2CountryCode(value); return *this;} /** *The list of supported routes.
*/ inline const RouteType& GetRouteType() const{ return m_routeType; } /** *The list of supported routes.
*/ inline bool RouteTypeHasBeenSet() const { return m_routeTypeHasBeenSet; } /** *The list of supported routes.
*/ inline void SetRouteType(const RouteType& value) { m_routeTypeHasBeenSet = true; m_routeType = value; } /** *The list of supported routes.
*/ inline void SetRouteType(RouteType&& value) { m_routeTypeHasBeenSet = true; m_routeType = std::move(value); } /** *The list of supported routes.
*/ inline PhoneNumberInformation& WithRouteType(const RouteType& value) { SetRouteType(value); return *this;} /** *The list of supported routes.
*/ inline PhoneNumberInformation& WithRouteType(RouteType&& value) { SetRouteType(std::move(value)); return *this;} /** *The capabilities of each phone number.
*/ inline const Aws::VectorThe capabilities of each phone number.
*/ inline bool NumberCapabilitiesHasBeenSet() const { return m_numberCapabilitiesHasBeenSet; } /** *The capabilities of each phone number.
*/ inline void SetNumberCapabilities(const Aws::VectorThe capabilities of each phone number.
*/ inline void SetNumberCapabilities(Aws::VectorThe capabilities of each phone number.
*/ inline PhoneNumberInformation& WithNumberCapabilities(const Aws::VectorThe capabilities of each phone number.
*/ inline PhoneNumberInformation& WithNumberCapabilities(Aws::VectorThe capabilities of each phone number.
*/ inline PhoneNumberInformation& AddNumberCapabilities(const NumberCapability& value) { m_numberCapabilitiesHasBeenSet = true; m_numberCapabilities.push_back(value); return *this; } /** *The capabilities of each phone number.
*/ inline PhoneNumberInformation& AddNumberCapabilities(NumberCapability&& value) { m_numberCapabilitiesHasBeenSet = true; m_numberCapabilities.push_back(std::move(value)); return *this; } private: Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_phoneNumber; bool m_phoneNumberHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_iso2CountryCode; bool m_iso2CountryCodeHasBeenSet = false; RouteType m_routeType; bool m_routeTypeHasBeenSet = false; Aws::Vector