45 lines
1.0 KiB
C++
45 lines
1.0 KiB
C++
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include <aws/elasticfilesystem/model/UpdateFileSystemRequest.h>
|
|||
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|||
|
|
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
using namespace Aws::EFS::Model;
|
|||
|
|
using namespace Aws::Utils::Json;
|
|||
|
|
using namespace Aws::Utils;
|
|||
|
|
|
|||
|
|
UpdateFileSystemRequest::UpdateFileSystemRequest() :
|
|||
|
|
m_fileSystemIdHasBeenSet(false),
|
|||
|
|
m_throughputMode(ThroughputMode::NOT_SET),
|
|||
|
|
m_throughputModeHasBeenSet(false),
|
|||
|
|
m_provisionedThroughputInMibps(0.0),
|
|||
|
|
m_provisionedThroughputInMibpsHasBeenSet(false)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
Aws::String UpdateFileSystemRequest::SerializePayload() const
|
|||
|
|
{
|
|||
|
|
JsonValue payload;
|
|||
|
|
|
|||
|
|
if(m_throughputModeHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithString("ThroughputMode", ThroughputModeMapper::GetNameForThroughputMode(m_throughputMode));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
if(m_provisionedThroughputInMibpsHasBeenSet)
|
|||
|
|
{
|
|||
|
|
payload.WithDouble("ProvisionedThroughputInMibps", m_provisionedThroughputInMibps);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return payload.View().WriteReadable();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|