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-ce/source/model/DateInterval.cpp

75 lines
1.2 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ce/model/DateInterval.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace CostExplorer
{
namespace Model
{
DateInterval::DateInterval() :
m_startHasBeenSet(false),
m_endHasBeenSet(false)
{
}
DateInterval::DateInterval(JsonView jsonValue) :
m_startHasBeenSet(false),
m_endHasBeenSet(false)
{
*this = jsonValue;
}
DateInterval& DateInterval::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Start"))
{
m_start = jsonValue.GetString("Start");
m_startHasBeenSet = true;
}
if(jsonValue.ValueExists("End"))
{
m_end = jsonValue.GetString("End");
m_endHasBeenSet = true;
}
return *this;
}
JsonValue DateInterval::Jsonize() const
{
JsonValue payload;
if(m_startHasBeenSet)
{
payload.WithString("Start", m_start);
}
if(m_endHasBeenSet)
{
payload.WithString("End", m_end);
}
return payload;
}
} // namespace Model
} // namespace CostExplorer
} // namespace Aws