This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-elasticfilesystem/source/model/CreateMountTargetResult.cpp

97 lines
2.1 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elasticfilesystem/model/CreateMountTargetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::EFS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateMountTargetResult::CreateMountTargetResult() :
m_lifeCycleState(LifeCycleState::NOT_SET)
{
}
CreateMountTargetResult::CreateMountTargetResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_lifeCycleState(LifeCycleState::NOT_SET)
{
*this = result;
}
CreateMountTargetResult& CreateMountTargetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("OwnerId"))
{
m_ownerId = jsonValue.GetString("OwnerId");
}
if(jsonValue.ValueExists("MountTargetId"))
{
m_mountTargetId = jsonValue.GetString("MountTargetId");
}
if(jsonValue.ValueExists("FileSystemId"))
{
m_fileSystemId = jsonValue.GetString("FileSystemId");
}
if(jsonValue.ValueExists("SubnetId"))
{
m_subnetId = jsonValue.GetString("SubnetId");
}
if(jsonValue.ValueExists("LifeCycleState"))
{
m_lifeCycleState = LifeCycleStateMapper::GetLifeCycleStateForName(jsonValue.GetString("LifeCycleState"));
}
if(jsonValue.ValueExists("IpAddress"))
{
m_ipAddress = jsonValue.GetString("IpAddress");
}
if(jsonValue.ValueExists("NetworkInterfaceId"))
{
m_networkInterfaceId = jsonValue.GetString("NetworkInterfaceId");
}
if(jsonValue.ValueExists("AvailabilityZoneId"))
{
m_availabilityZoneId = jsonValue.GetString("AvailabilityZoneId");
}
if(jsonValue.ValueExists("AvailabilityZoneName"))
{
m_availabilityZoneName = jsonValue.GetString("AvailabilityZoneName");
}
if(jsonValue.ValueExists("VpcId"))
{
m_vpcId = jsonValue.GetString("VpcId");
}
return *this;
}