/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IdentityStore { namespace Model { /** *

The phone number associated with the user.

See Also:

AWS * API Reference

*/ class PhoneNumber { public: AWS_IDENTITYSTORE_API PhoneNumber(); AWS_IDENTITYSTORE_API PhoneNumber(Aws::Utils::Json::JsonView jsonValue); AWS_IDENTITYSTORE_API PhoneNumber& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A string containing a phone number. For example, "8675309" or "+1 (800) * 123-4567".

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

A string containing a phone number. For example, "8675309" or "+1 (800) * 123-4567".

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

A string containing a phone number. For example, "8675309" or "+1 (800) * 123-4567".

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

A string containing a phone number. For example, "8675309" or "+1 (800) * 123-4567".

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

A string containing a phone number. For example, "8675309" or "+1 (800) * 123-4567".

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

A string containing a phone number. For example, "8675309" or "+1 (800) * 123-4567".

*/ inline PhoneNumber& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

A string containing a phone number. For example, "8675309" or "+1 (800) * 123-4567".

*/ inline PhoneNumber& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

A string containing a phone number. For example, "8675309" or "+1 (800) * 123-4567".

*/ inline PhoneNumber& WithValue(const char* value) { SetValue(value); return *this;} /** *

A string representing the type of a phone number. For example, "Mobile."

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

A string representing the type of a phone number. For example, "Mobile."

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

A string representing the type of a phone number. For example, "Mobile."

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

A string representing the type of a phone number. For example, "Mobile."

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

A string representing the type of a phone number. For example, "Mobile."

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

A string representing the type of a phone number. For example, "Mobile."

*/ inline PhoneNumber& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

A string representing the type of a phone number. For example, "Mobile."

*/ inline PhoneNumber& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

A string representing the type of a phone number. For example, "Mobile."

*/ inline PhoneNumber& WithType(const char* value) { SetType(value); return *this;} /** *

A Boolean value representing whether this is the primary phone number for the * associated resource.

*/ inline bool GetPrimary() const{ return m_primary; } /** *

A Boolean value representing whether this is the primary phone number for the * associated resource.

*/ inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; } /** *

A Boolean value representing whether this is the primary phone number for the * associated resource.

*/ inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; } /** *

A Boolean value representing whether this is the primary phone number for the * associated resource.

*/ inline PhoneNumber& WithPrimary(bool value) { SetPrimary(value); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; bool m_primary; bool m_primaryHasBeenSet = false; }; } // namespace Model } // namespace IdentityStore } // namespace Aws