1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #include <aws/alexaforbusiness/model/BusinessReportContentRange.h> 7 #include <aws/core/utils/json/JsonSerializer.h> 8 9 #include <utility> 10 11 using namespace Aws::Utils::Json; 12 using namespace Aws::Utils; 13 14 namespace Aws 15 { 16 namespace AlexaForBusiness 17 { 18 namespace Model 19 { 20 BusinessReportContentRange()21BusinessReportContentRange::BusinessReportContentRange() : 22 m_interval(BusinessReportInterval::NOT_SET), 23 m_intervalHasBeenSet(false) 24 { 25 } 26 BusinessReportContentRange(JsonView jsonValue)27BusinessReportContentRange::BusinessReportContentRange(JsonView jsonValue) : 28 m_interval(BusinessReportInterval::NOT_SET), 29 m_intervalHasBeenSet(false) 30 { 31 *this = jsonValue; 32 } 33 operator =(JsonView jsonValue)34BusinessReportContentRange& BusinessReportContentRange::operator =(JsonView jsonValue) 35 { 36 if(jsonValue.ValueExists("Interval")) 37 { 38 m_interval = BusinessReportIntervalMapper::GetBusinessReportIntervalForName(jsonValue.GetString("Interval")); 39 40 m_intervalHasBeenSet = true; 41 } 42 43 return *this; 44 } 45 Jsonize() const46JsonValue BusinessReportContentRange::Jsonize() const 47 { 48 JsonValue payload; 49 50 if(m_intervalHasBeenSet) 51 { 52 payload.WithString("Interval", BusinessReportIntervalMapper::GetNameForBusinessReportInterval(m_interval)); 53 } 54 55 return payload; 56 } 57 58 } // namespace Model 59 } // namespace AlexaForBusiness 60 } // namespace Aws 61