/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include using namespace Aws::Utils::Xml; using namespace Aws::Utils; namespace Aws { namespace EC2 { namespace Model { CertificateAuthenticationRequest::CertificateAuthenticationRequest() : m_clientRootCertificateChainArnHasBeenSet(false) { } CertificateAuthenticationRequest::CertificateAuthenticationRequest(const XmlNode& xmlNode) : m_clientRootCertificateChainArnHasBeenSet(false) { *this = xmlNode; } CertificateAuthenticationRequest& CertificateAuthenticationRequest::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode clientRootCertificateChainArnNode = resultNode.FirstChild("ClientRootCertificateChainArn"); if(!clientRootCertificateChainArnNode.IsNull()) { m_clientRootCertificateChainArn = Aws::Utils::Xml::DecodeEscapedXmlText(clientRootCertificateChainArnNode.GetText()); m_clientRootCertificateChainArnHasBeenSet = true; } } return *this; } void CertificateAuthenticationRequest::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const { if(m_clientRootCertificateChainArnHasBeenSet) { oStream << location << index << locationValue << ".ClientRootCertificateChainArn=" << StringUtils::URLEncode(m_clientRootCertificateChainArn.c_str()) << "&"; } } void CertificateAuthenticationRequest::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_clientRootCertificateChainArnHasBeenSet) { oStream << location << ".ClientRootCertificateChainArn=" << StringUtils::URLEncode(m_clientRootCertificateChainArn.c_str()) << "&"; } } } // namespace Model } // namespace EC2 } // namespace Aws