/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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