/** * 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 CustomerProfiles { namespace Model { Batch::Batch() : m_startTimeHasBeenSet(false), m_endTimeHasBeenSet(false) { } Batch::Batch(JsonView jsonValue) : m_startTimeHasBeenSet(false), m_endTimeHasBeenSet(false) { *this = jsonValue; } Batch& Batch::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("StartTime")) { m_startTime = jsonValue.GetDouble("StartTime"); m_startTimeHasBeenSet = true; } if(jsonValue.ValueExists("EndTime")) { m_endTime = jsonValue.GetDouble("EndTime"); m_endTimeHasBeenSet = true; } return *this; } JsonValue Batch::Jsonize() const { JsonValue payload; if(m_startTimeHasBeenSet) { payload.WithDouble("StartTime", m_startTime.SecondsWithMSPrecision()); } if(m_endTimeHasBeenSet) { payload.WithDouble("EndTime", m_endTime.SecondsWithMSPrecision()); } return payload; } } // namespace Model } // namespace CustomerProfiles } // namespace Aws