/** * 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 Redshift { namespace Model { ClusterIamRole::ClusterIamRole() : m_iamRoleArnHasBeenSet(false), m_applyStatusHasBeenSet(false) { } ClusterIamRole::ClusterIamRole(const XmlNode& xmlNode) : m_iamRoleArnHasBeenSet(false), m_applyStatusHasBeenSet(false) { *this = xmlNode; } ClusterIamRole& ClusterIamRole::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode iamRoleArnNode = resultNode.FirstChild("IamRoleArn"); if(!iamRoleArnNode.IsNull()) { m_iamRoleArn = Aws::Utils::Xml::DecodeEscapedXmlText(iamRoleArnNode.GetText()); m_iamRoleArnHasBeenSet = true; } XmlNode applyStatusNode = resultNode.FirstChild("ApplyStatus"); if(!applyStatusNode.IsNull()) { m_applyStatus = Aws::Utils::Xml::DecodeEscapedXmlText(applyStatusNode.GetText()); m_applyStatusHasBeenSet = true; } } return *this; } void ClusterIamRole::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const { if(m_iamRoleArnHasBeenSet) { oStream << location << index << locationValue << ".IamRoleArn=" << StringUtils::URLEncode(m_iamRoleArn.c_str()) << "&"; } if(m_applyStatusHasBeenSet) { oStream << location << index << locationValue << ".ApplyStatus=" << StringUtils::URLEncode(m_applyStatus.c_str()) << "&"; } } void ClusterIamRole::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_iamRoleArnHasBeenSet) { oStream << location << ".IamRoleArn=" << StringUtils::URLEncode(m_iamRoleArn.c_str()) << "&"; } if(m_applyStatusHasBeenSet) { oStream << location << ".ApplyStatus=" << StringUtils::URLEncode(m_applyStatus.c_str()) << "&"; } } } // namespace Model } // namespace Redshift } // namespace Aws