DescribeStackResourcesResult& DescribeStackResourcesResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "DescribeStackResourcesResult")
  {
    resultNode = rootNode.FirstChild("DescribeStackResourcesResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode stackResourcesNode = resultNode.FirstChild("StackResources");
    if(!stackResourcesNode.IsNull())
    {
      XmlNode stackResourcesMember = stackResourcesNode.FirstChild("member");
      while(!stackResourcesMember.IsNull())
      {
        m_stackResources.push_back(stackResourcesMember);
        stackResourcesMember = stackResourcesMember.NextNode("member");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::DescribeStackResourcesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
RestoreDBClusterToPointInTimeResult& RestoreDBClusterToPointInTimeResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "RestoreDBClusterToPointInTimeResult")
  {
    resultNode = rootNode.FirstChild("RestoreDBClusterToPointInTimeResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode dBClusterNode = resultNode.FirstChild("DBCluster");
    if(!dBClusterNode.IsNull())
    {
      m_dBCluster = dBClusterNode;
    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::RDS::Model::RestoreDBClusterToPointInTimeResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
DescribeNetworkInterfacesResponse& DescribeNetworkInterfacesResponse::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "DescribeNetworkInterfacesResponse")
  {
    resultNode = rootNode.FirstChild("DescribeNetworkInterfacesResponse");
  }

  if(!resultNode.IsNull())
  {
    XmlNode networkInterfacesNode = resultNode.FirstChild("networkInterfaceSet");
    if(!networkInterfacesNode.IsNull())
    {
      XmlNode networkInterfacesMember = networkInterfacesNode.FirstChild("item");
      while(!networkInterfacesMember.IsNull())
      {
        m_networkInterfaces.push_back(networkInterfacesMember);
        networkInterfacesMember = networkInterfacesMember.NextNode("item");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::EC2::Model::DescribeNetworkInterfacesResponse", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
CreateClusterSecurityGroupResult& CreateClusterSecurityGroupResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "CreateClusterSecurityGroupResult")
  {
    resultNode = rootNode.FirstChild("CreateClusterSecurityGroupResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode clusterSecurityGroupNode = resultNode.FirstChild("ClusterSecurityGroup");
    if(!clusterSecurityGroupNode.IsNull())
    {
      m_clusterSecurityGroup = clusterSecurityGroupNode;
    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::Redshift::Model::CreateClusterSecurityGroupResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
DescribeEventCategoriesResult& DescribeEventCategoriesResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "DescribeEventCategoriesResult")
  {
    resultNode = rootNode.FirstChild("DescribeEventCategoriesResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode eventCategoriesMapListNode = resultNode.FirstChild("EventCategoriesMapList");
    if(!eventCategoriesMapListNode.IsNull())
    {
      XmlNode eventCategoriesMapListMember = eventCategoriesMapListNode.FirstChild("EventCategoriesMap");
      while(!eventCategoriesMapListMember.IsNull())
      {
        m_eventCategoriesMapList.push_back(eventCategoriesMapListMember);
        eventCategoriesMapListMember = eventCategoriesMapListMember.NextNode("EventCategoriesMap");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;

  return *this;
}
ListSubscriptionsByTopicResult& ListSubscriptionsByTopicResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "ListSubscriptionsByTopicResult")
  {
    resultNode = rootNode.FirstChild("ListSubscriptionsByTopicResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode subscriptionsNode = resultNode.FirstChild("Subscriptions");
    if(!subscriptionsNode.IsNull())
    {
      XmlNode subscriptionsMember = subscriptionsNode.FirstChild("member");
      while(!subscriptionsMember.IsNull())
      {
        m_subscriptions.push_back(subscriptionsMember);
        subscriptionsMember = subscriptionsMember.NextNode("member");
      }

    }
    XmlNode nextTokenNode = resultNode.FirstChild("NextToken");
    if(!nextTokenNode.IsNull())
    {
      m_nextToken = StringUtils::Trim(nextTokenNode.GetText().c_str());
    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;

  return *this;
}
GenerateCredentialReportResult& GenerateCredentialReportResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "GenerateCredentialReportResult")
  {
    resultNode = rootNode.FirstChild("GenerateCredentialReportResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode stateNode = resultNode.FirstChild("State");
    if(!stateNode.IsNull())
    {
      m_state = ReportStateTypeMapper::GetReportStateTypeForName(StringUtils::Trim(stateNode.GetText().c_str()).c_str());
    }
    XmlNode descriptionNode = resultNode.FirstChild("Description");
    if(!descriptionNode.IsNull())
    {
      m_description = StringUtils::Trim(descriptionNode.GetText().c_str());
    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::IAM::Model::GenerateCredentialReportResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
BuildSuggestersResult& BuildSuggestersResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "BuildSuggestersResult")
  {
    resultNode = rootNode.FirstChild("BuildSuggestersResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode fieldNamesNode = resultNode.FirstChild("FieldNames");
    if(!fieldNamesNode.IsNull())
    {
      XmlNode fieldNamesMember = fieldNamesNode.FirstChild("member");
      while(!fieldNamesMember.IsNull())
      {
        m_fieldNames.push_back(StringUtils::Trim(fieldNamesMember.GetText().c_str()));
        fieldNamesMember = fieldNamesMember.NextNode("member");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::BuildSuggestersResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
ModifySpotFleetRequestResponse& ModifySpotFleetRequestResponse::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "ModifySpotFleetRequestResponse")
  {
    resultNode = rootNode.FirstChild("ModifySpotFleetRequestResponse");
  }

  if(!resultNode.IsNull())
  {
    XmlNode returnNode = resultNode.FirstChild("return");
    if(!returnNode.IsNull())
    {
      m_return = StringUtils::ConvertToBool(StringUtils::Trim(returnNode.GetText().c_str()).c_str());
    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::EC2::Model::ModifySpotFleetRequestResponse", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
RemoveSourceIdentifierFromSubscriptionResult& RemoveSourceIdentifierFromSubscriptionResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "RemoveSourceIdentifierFromSubscriptionResult")
  {
    resultNode = rootNode.FirstChild("RemoveSourceIdentifierFromSubscriptionResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode eventSubscriptionNode = resultNode.FirstChild("EventSubscription");
    if(!eventSubscriptionNode.IsNull())
    {
      m_eventSubscription = eventSubscriptionNode;
    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::RDS::Model::RemoveSourceIdentifierFromSubscriptionResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
GetSendStatisticsResult& GetSendStatisticsResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "GetSendStatisticsResult")
  {
    resultNode = rootNode.FirstChild("GetSendStatisticsResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode sendDataPointsNode = resultNode.FirstChild("SendDataPoints");
    if(!sendDataPointsNode.IsNull())
    {
      XmlNode sendDataPointsMember = sendDataPointsNode.FirstChild("member");
      while(!sendDataPointsMember.IsNull())
      {
        m_sendDataPoints.push_back(sendDataPointsMember);
        sendDataPointsMember = sendDataPointsMember.NextNode("member");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::SES::Model::GetSendStatisticsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
DescribeEnvironmentsResult& DescribeEnvironmentsResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "DescribeEnvironmentsResult")
  {
    resultNode = rootNode.FirstChild("DescribeEnvironmentsResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode environmentsNode = resultNode.FirstChild("Environments");
    if(!environmentsNode.IsNull())
    {
      XmlNode environmentsMember = environmentsNode.FirstChild("member");
      while(!environmentsMember.IsNull())
      {
        m_environments.push_back(environmentsMember);
        environmentsMember = environmentsMember.NextNode("member");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::ElasticBeanstalk::Model::DescribeEnvironmentsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
ValidateConfigurationSettingsResult& ValidateConfigurationSettingsResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "ValidateConfigurationSettingsResult")
  {
    resultNode = rootNode.FirstChild("ValidateConfigurationSettingsResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode messagesNode = resultNode.FirstChild("Messages");
    if(!messagesNode.IsNull())
    {
      XmlNode messagesMember = messagesNode.FirstChild("member");
      while(!messagesMember.IsNull())
      {
        m_messages.push_back(messagesMember);
        messagesMember = messagesMember.NextNode("member");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::ElasticBeanstalk::Model::ValidateConfigurationSettingsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
Ejemplo n.º 14
0
EnterStandbyResult& EnterStandbyResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "EnterStandbyResult")
  {
    resultNode = rootNode.FirstChild("EnterStandbyResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode activitiesNode = resultNode.FirstChild("Activities");
    if(!activitiesNode.IsNull())
    {
      XmlNode activitiesMember = activitiesNode.FirstChild("member");
      while(!activitiesMember.IsNull())
      {
        m_activities.push_back(activitiesMember);
        activitiesMember = activitiesMember.NextNode("member");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;

  return *this;
}
DescribeReplicationGroupsResult& DescribeReplicationGroupsResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "DescribeReplicationGroupsResult")
  {
    resultNode = rootNode.FirstChild("DescribeReplicationGroupsResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode markerNode = resultNode.FirstChild("Marker");
    if(!markerNode.IsNull())
    {
      m_marker = StringUtils::Trim(markerNode.GetText().c_str());
    }
    XmlNode replicationGroupsNode = resultNode.FirstChild("ReplicationGroups");
    if(!replicationGroupsNode.IsNull())
    {
      XmlNode replicationGroupsMember = replicationGroupsNode.FirstChild("ReplicationGroup");
      while(!replicationGroupsMember.IsNull())
      {
        m_replicationGroups.push_back(replicationGroupsMember);
        replicationGroupsMember = replicationGroupsMember.NextNode("ReplicationGroup");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;

  return *this;
}
DescribeLifecycleHookTypesResult& DescribeLifecycleHookTypesResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "DescribeLifecycleHookTypesResult")
  {
    resultNode = rootNode.FirstChild("DescribeLifecycleHookTypesResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode lifecycleHookTypesNode = resultNode.FirstChild("LifecycleHookTypes");
    if(!lifecycleHookTypesNode.IsNull())
    {
      XmlNode lifecycleHookTypesMember = lifecycleHookTypesNode.FirstChild("member");
      while(!lifecycleHookTypesMember.IsNull())
      {
        m_lifecycleHookTypes.push_back(StringUtils::Trim(lifecycleHookTypesMember.GetText().c_str()));
        lifecycleHookTypesMember = lifecycleHookTypesMember.NextNode("member");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::AutoScaling::Model::DescribeLifecycleHookTypesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
Ejemplo n.º 17
0
GetPolicyResult& GetPolicyResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "GetPolicyResult")
  {
    resultNode = rootNode.FirstChild("GetPolicyResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode policyNode = resultNode.FirstChild("Policy");
    if(!policyNode.IsNull())
    {
      m_policy = policyNode;
    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::IAM::Model::GetPolicyResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
DescribeLoadBalancerPolicyTypesResult& DescribeLoadBalancerPolicyTypesResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "DescribeLoadBalancerPolicyTypesResult")
  {
    resultNode = rootNode.FirstChild("DescribeLoadBalancerPolicyTypesResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode policyTypeDescriptionsNode = resultNode.FirstChild("PolicyTypeDescriptions");
    if(!policyTypeDescriptionsNode.IsNull())
    {
      XmlNode policyTypeDescriptionsMember = policyTypeDescriptionsNode.FirstChild("member");
      while(!policyTypeDescriptionsMember.IsNull())
      {
        m_policyTypeDescriptions.push_back(policyTypeDescriptionsMember);
        policyTypeDescriptionsMember = policyTypeDescriptionsMember.NextNode("member");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::ElasticLoadBalancing::Model::DescribeLoadBalancerPolicyTypesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
CancelReservedInstancesListingResponse& CancelReservedInstancesListingResponse::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "CancelReservedInstancesListingResponse")
  {
    resultNode = rootNode.FirstChild("CancelReservedInstancesListingResponse");
  }

  if(!resultNode.IsNull())
  {
    XmlNode reservedInstancesListingsNode = resultNode.FirstChild("ReservedInstancesListings");
    if(!reservedInstancesListingsNode.IsNull())
    {
      XmlNode reservedInstancesListingsMember = reservedInstancesListingsNode.FirstChild("item");
      while(!reservedInstancesListingsMember.IsNull())
      {
        m_reservedInstancesListings.push_back(reservedInstancesListingsMember);
        reservedInstancesListingsMember = reservedInstancesListingsMember.NextNode("item");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::EC2::Model::CancelReservedInstancesListingResponse", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
Ejemplo n.º 20
0
DetachInstancesResult& DetachInstancesResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "DetachInstancesResult")
  {
    resultNode = rootNode.FirstChild("DetachInstancesResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode activitiesNode = resultNode.FirstChild("Activities");
    if(!activitiesNode.IsNull())
    {
      XmlNode activitiesMember = activitiesNode.FirstChild("member");
      while(!activitiesMember.IsNull())
      {
        m_activities.push_back(activitiesMember);
        activitiesMember = activitiesMember.NextNode("member");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::AutoScaling::Model::DetachInstancesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
DescribeDefaultClusterParametersResult& DescribeDefaultClusterParametersResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "DescribeDefaultClusterParametersResult")
  {
    resultNode = rootNode.FirstChild("DescribeDefaultClusterParametersResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode defaultClusterParametersNode = resultNode.FirstChild("DefaultClusterParameters");
    if(!defaultClusterParametersNode.IsNull())
    {
      m_defaultClusterParameters = defaultClusterParametersNode;
    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::Redshift::Model::DescribeDefaultClusterParametersResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
DisableAvailabilityZonesForLoadBalancerResult& DisableAvailabilityZonesForLoadBalancerResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "DisableAvailabilityZonesForLoadBalancerResult")
  {
    resultNode = rootNode.FirstChild("DisableAvailabilityZonesForLoadBalancerResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode availabilityZonesNode = resultNode.FirstChild("AvailabilityZones");
    if(!availabilityZonesNode.IsNull())
    {
      XmlNode availabilityZonesMember = availabilityZonesNode.FirstChild("member");
      while(!availabilityZonesMember.IsNull())
      {
        m_availabilityZones.push_back(StringUtils::Trim(availabilityZonesMember.GetText().c_str()));
        availabilityZonesMember = availabilityZonesMember.NextNode("member");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::ElasticLoadBalancing::Model::DisableAvailabilityZonesForLoadBalancerResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
DefineIndexFieldResult& DefineIndexFieldResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "DefineIndexFieldResult")
  {
    resultNode = rootNode.FirstChild("DefineIndexFieldResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode indexFieldNode = resultNode.FirstChild("IndexField");
    if(!indexFieldNode.IsNull())
    {
      m_indexField = indexFieldNode;
    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::CloudSearch::Model::DefineIndexFieldResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
Ejemplo n.º 24
0
CreateQueueResult& CreateQueueResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "CreateQueueResult")
  {
    resultNode = rootNode.FirstChild("CreateQueueResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode queueUrlNode = resultNode.FirstChild("QueueUrl");
    if(!queueUrlNode.IsNull())
    {
      m_queueUrl = StringUtils::Trim(queueUrlNode.GetText().c_str());
    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::SQS::Model::CreateQueueResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
Ejemplo n.º 25
0
UpdateStackResult& UpdateStackResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "UpdateStackResult")
  {
    resultNode = rootNode.FirstChild("UpdateStackResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode stackIdNode = resultNode.FirstChild("StackId");
    if(!stackIdNode.IsNull())
    {
      m_stackId = StringUtils::Trim(stackIdNode.GetText().c_str());
    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::UpdateStackResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
ListOpenIDConnectProvidersResult& ListOpenIDConnectProvidersResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "ListOpenIDConnectProvidersResult")
  {
    resultNode = rootNode.FirstChild("ListOpenIDConnectProvidersResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode openIDConnectProviderListNode = resultNode.FirstChild("OpenIDConnectProviderList");
    if(!openIDConnectProviderListNode.IsNull())
    {
      XmlNode openIDConnectProviderListMember = openIDConnectProviderListNode.FirstChild("member");
      while(!openIDConnectProviderListMember.IsNull())
      {
        m_openIDConnectProviderList.push_back(openIDConnectProviderListMember);
        openIDConnectProviderListMember = openIDConnectProviderListMember.NextNode("member");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::IAM::Model::ListOpenIDConnectProvidersResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
ListVerifiedEmailAddressesResult& ListVerifiedEmailAddressesResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "ListVerifiedEmailAddressesResult")
  {
    resultNode = rootNode.FirstChild("ListVerifiedEmailAddressesResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode verifiedEmailAddressesNode = resultNode.FirstChild("VerifiedEmailAddresses");
    if(!verifiedEmailAddressesNode.IsNull())
    {
      XmlNode verifiedEmailAddressesMember = verifiedEmailAddressesNode.FirstChild("member");
      while(!verifiedEmailAddressesMember.IsNull())
      {
        m_verifiedEmailAddresses.push_back(StringUtils::Trim(verifiedEmailAddressesMember.GetText().c_str()));
        verifiedEmailAddressesMember = verifiedEmailAddressesMember.NextNode("member");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::SES::Model::ListVerifiedEmailAddressesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
ListTagsForResourceResult& ListTagsForResourceResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "ListTagsForResourceResult")
  {
    resultNode = rootNode.FirstChild("ListTagsForResourceResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode tagListNode = resultNode.FirstChild("TagList");
    if(!tagListNode.IsNull())
    {
      XmlNode tagListMember = tagListNode.FirstChild("Tag");
      while(!tagListMember.IsNull())
      {
        m_tagList.push_back(tagListMember);
        tagListMember = tagListMember.NextNode("Tag");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::ElastiCache::Model::ListTagsForResourceResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
GetPasswordDataResponse& GetPasswordDataResponse::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "GetPasswordDataResponse")
  {
    resultNode = rootNode.FirstChild("GetPasswordDataResponse");
  }

  if(!resultNode.IsNull())
  {
    XmlNode instanceIdNode = resultNode.FirstChild("instanceId");
    if(!instanceIdNode.IsNull())
    {
      m_instanceId = StringUtils::Trim(instanceIdNode.GetText().c_str());
    }
    XmlNode timestampNode = resultNode.FirstChild("timestamp");
    if(!timestampNode.IsNull())
    {
      m_timestamp = StringUtils::ConvertToDouble(StringUtils::Trim(timestampNode.GetText().c_str()).c_str());
    }
    XmlNode passwordDataNode = resultNode.FirstChild("passwordData");
    if(!passwordDataNode.IsNull())
    {
      m_passwordData = StringUtils::Trim(passwordDataNode.GetText().c_str());
    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::EC2::Model::GetPasswordDataResponse", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}
GetQueueAttributesResult& GetQueueAttributesResult::operator =(const AmazonWebServiceResult<XmlDocument>& result)
{
  const XmlDocument& xmlDocument = result.GetPayload();
  XmlNode rootNode = xmlDocument.GetRootElement();
  XmlNode resultNode = rootNode;
  if (rootNode.GetName() != "GetQueueAttributesResult")
  {
    resultNode = rootNode.FirstChild("GetQueueAttributesResult");
  }

  if(!resultNode.IsNull())
  {
    XmlNode attributesNode = resultNode.FirstChild("Attribute");
    if(!attributesNode.IsNull())
    {
      XmlNode attributeEntry = attributesNode;
      while(!attributeEntry.IsNull())
      {
        XmlNode keyNode = attributeEntry.FirstChild("Name");
        XmlNode valueNode = attributeEntry.FirstChild("Value");
        m_attributes[QueueAttributeNameMapper::GetQueueAttributeNameForName(StringUtils::Trim(keyNode.GetText().c_str()))] =
            StringUtils::Trim(valueNode.GetText().c_str());
        attributeEntry = attributeEntry.NextNode("Attribute");
      }

    }
  }

  XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata");
  m_responseMetadata = responseMetadataNode;
  AWS_LOGSTREAM_DEBUG("Aws::SQS::Model::GetQueueAttributesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() );

  return *this;
}