/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ChimeSDKVoice { namespace Model { class ValidateE911AddressResult { public: AWS_CHIMESDKVOICE_API ValidateE911AddressResult(); AWS_CHIMESDKVOICE_API ValidateE911AddressResult(const Aws::AmazonWebServiceResult& result); AWS_CHIMESDKVOICE_API ValidateE911AddressResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Number indicating the result of address validation. 0 means the * address was perfect as-is and successfully validated. 1 means the * address was corrected. 2 means the address sent was not close * enough and was not validated.

*/ inline int GetValidationResult() const{ return m_validationResult; } /** *

Number indicating the result of address validation. 0 means the * address was perfect as-is and successfully validated. 1 means the * address was corrected. 2 means the address sent was not close * enough and was not validated.

*/ inline void SetValidationResult(int value) { m_validationResult = value; } /** *

Number indicating the result of address validation. 0 means the * address was perfect as-is and successfully validated. 1 means the * address was corrected. 2 means the address sent was not close * enough and was not validated.

*/ inline ValidateE911AddressResult& WithValidationResult(int value) { SetValidationResult(value); return *this;} /** *

The ID that represents the address.

*/ inline const Aws::String& GetAddressExternalId() const{ return m_addressExternalId; } /** *

The ID that represents the address.

*/ inline void SetAddressExternalId(const Aws::String& value) { m_addressExternalId = value; } /** *

The ID that represents the address.

*/ inline void SetAddressExternalId(Aws::String&& value) { m_addressExternalId = std::move(value); } /** *

The ID that represents the address.

*/ inline void SetAddressExternalId(const char* value) { m_addressExternalId.assign(value); } /** *

The ID that represents the address.

*/ inline ValidateE911AddressResult& WithAddressExternalId(const Aws::String& value) { SetAddressExternalId(value); return *this;} /** *

The ID that represents the address.

*/ inline ValidateE911AddressResult& WithAddressExternalId(Aws::String&& value) { SetAddressExternalId(std::move(value)); return *this;} /** *

The ID that represents the address.

*/ inline ValidateE911AddressResult& WithAddressExternalId(const char* value) { SetAddressExternalId(value); return *this;} /** *

The validated address.

*/ inline const Address& GetAddress() const{ return m_address; } /** *

The validated address.

*/ inline void SetAddress(const Address& value) { m_address = value; } /** *

The validated address.

*/ inline void SetAddress(Address&& value) { m_address = std::move(value); } /** *

The validated address.

*/ inline ValidateE911AddressResult& WithAddress(const Address& value) { SetAddress(value); return *this;} /** *

The validated address.

*/ inline ValidateE911AddressResult& WithAddress(Address&& value) { SetAddress(std::move(value)); return *this;} /** *

The list of address suggestions..

*/ inline const Aws::Vector& GetCandidateAddressList() const{ return m_candidateAddressList; } /** *

The list of address suggestions..

*/ inline void SetCandidateAddressList(const Aws::Vector& value) { m_candidateAddressList = value; } /** *

The list of address suggestions..

*/ inline void SetCandidateAddressList(Aws::Vector&& value) { m_candidateAddressList = std::move(value); } /** *

The list of address suggestions..

*/ inline ValidateE911AddressResult& WithCandidateAddressList(const Aws::Vector& value) { SetCandidateAddressList(value); return *this;} /** *

The list of address suggestions..

*/ inline ValidateE911AddressResult& WithCandidateAddressList(Aws::Vector&& value) { SetCandidateAddressList(std::move(value)); return *this;} /** *

The list of address suggestions..

*/ inline ValidateE911AddressResult& AddCandidateAddressList(const CandidateAddress& value) { m_candidateAddressList.push_back(value); return *this; } /** *

The list of address suggestions..

*/ inline ValidateE911AddressResult& AddCandidateAddressList(CandidateAddress&& value) { m_candidateAddressList.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ValidateE911AddressResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ValidateE911AddressResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ValidateE911AddressResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: int m_validationResult; Aws::String m_addressExternalId; Address m_address; Aws::Vector m_candidateAddressList; Aws::String m_requestId; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws