/** * 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 address associated with the specified user.

See Also:

AWS * API Reference

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

The street of the address.

*/ inline const Aws::String& GetStreetAddress() const{ return m_streetAddress; } /** *

The street of the address.

*/ inline bool StreetAddressHasBeenSet() const { return m_streetAddressHasBeenSet; } /** *

The street of the address.

*/ inline void SetStreetAddress(const Aws::String& value) { m_streetAddressHasBeenSet = true; m_streetAddress = value; } /** *

The street of the address.

*/ inline void SetStreetAddress(Aws::String&& value) { m_streetAddressHasBeenSet = true; m_streetAddress = std::move(value); } /** *

The street of the address.

*/ inline void SetStreetAddress(const char* value) { m_streetAddressHasBeenSet = true; m_streetAddress.assign(value); } /** *

The street of the address.

*/ inline Address& WithStreetAddress(const Aws::String& value) { SetStreetAddress(value); return *this;} /** *

The street of the address.

*/ inline Address& WithStreetAddress(Aws::String&& value) { SetStreetAddress(std::move(value)); return *this;} /** *

The street of the address.

*/ inline Address& WithStreetAddress(const char* value) { SetStreetAddress(value); return *this;} /** *

A string of the address locality.

*/ inline const Aws::String& GetLocality() const{ return m_locality; } /** *

A string of the address locality.

*/ inline bool LocalityHasBeenSet() const { return m_localityHasBeenSet; } /** *

A string of the address locality.

*/ inline void SetLocality(const Aws::String& value) { m_localityHasBeenSet = true; m_locality = value; } /** *

A string of the address locality.

*/ inline void SetLocality(Aws::String&& value) { m_localityHasBeenSet = true; m_locality = std::move(value); } /** *

A string of the address locality.

*/ inline void SetLocality(const char* value) { m_localityHasBeenSet = true; m_locality.assign(value); } /** *

A string of the address locality.

*/ inline Address& WithLocality(const Aws::String& value) { SetLocality(value); return *this;} /** *

A string of the address locality.

*/ inline Address& WithLocality(Aws::String&& value) { SetLocality(std::move(value)); return *this;} /** *

A string of the address locality.

*/ inline Address& WithLocality(const char* value) { SetLocality(value); return *this;} /** *

The region of the address.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

The region of the address.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

The region of the address.

*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *

The region of the address.

*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

The region of the address.

*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *

The region of the address.

*/ inline Address& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

The region of the address.

*/ inline Address& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

The region of the address.

*/ inline Address& WithRegion(const char* value) { SetRegion(value); return *this;} /** *

The postal code of the address.

*/ inline const Aws::String& GetPostalCode() const{ return m_postalCode; } /** *

The postal code of the address.

*/ inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; } /** *

The postal code of the address.

*/ inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; } /** *

The postal code of the address.

*/ inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); } /** *

The postal code of the address.

*/ inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); } /** *

The postal code of the address.

*/ inline Address& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;} /** *

The postal code of the address.

*/ inline Address& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;} /** *

The postal code of the address.

*/ inline Address& WithPostalCode(const char* value) { SetPostalCode(value); return *this;} /** *

The country of the address.

*/ inline const Aws::String& GetCountry() const{ return m_country; } /** *

The country of the address.

*/ inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; } /** *

The country of the address.

*/ inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; } /** *

The country of the address.

*/ inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); } /** *

The country of the address.

*/ inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); } /** *

The country of the address.

*/ inline Address& WithCountry(const Aws::String& value) { SetCountry(value); return *this;} /** *

The country of the address.

*/ inline Address& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;} /** *

The country of the address.

*/ inline Address& WithCountry(const char* value) { SetCountry(value); return *this;} /** *

A string containing a formatted version of the address for display.

*/ inline const Aws::String& GetFormatted() const{ return m_formatted; } /** *

A string containing a formatted version of the address for display.

*/ inline bool FormattedHasBeenSet() const { return m_formattedHasBeenSet; } /** *

A string containing a formatted version of the address for display.

*/ inline void SetFormatted(const Aws::String& value) { m_formattedHasBeenSet = true; m_formatted = value; } /** *

A string containing a formatted version of the address for display.

*/ inline void SetFormatted(Aws::String&& value) { m_formattedHasBeenSet = true; m_formatted = std::move(value); } /** *

A string containing a formatted version of the address for display.

*/ inline void SetFormatted(const char* value) { m_formattedHasBeenSet = true; m_formatted.assign(value); } /** *

A string containing a formatted version of the address for display.

*/ inline Address& WithFormatted(const Aws::String& value) { SetFormatted(value); return *this;} /** *

A string containing a formatted version of the address for display.

*/ inline Address& WithFormatted(Aws::String&& value) { SetFormatted(std::move(value)); return *this;} /** *

A string containing a formatted version of the address for display.

*/ inline Address& WithFormatted(const char* value) { SetFormatted(value); return *this;} /** *

A string representing the type of address. For example, "Home."

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

A string representing the type of address. For example, "Home."

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

A string representing the type of address. For example, "Home."

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

A string representing the type of address. For example, "Home."

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

A string representing the type of address. For example, "Home."

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

A string representing the type of address. For example, "Home."

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

A string representing the type of address. For example, "Home."

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

A string representing the type of address. For example, "Home."

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

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

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

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

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

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

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

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

*/ inline Address& WithPrimary(bool value) { SetPrimary(value); return *this;} private: Aws::String m_streetAddress; bool m_streetAddressHasBeenSet = false; Aws::String m_locality; bool m_localityHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; Aws::String m_postalCode; bool m_postalCodeHasBeenSet = false; Aws::String m_country; bool m_countryHasBeenSet = false; Aws::String m_formatted; bool m_formattedHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; bool m_primary; bool m_primaryHasBeenSet = false; }; } // namespace Model } // namespace IdentityStore } // namespace Aws