/** * 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 NimbleStudio { namespace Model { Eula::Eula() : m_contentHasBeenSet(false), m_createdAtHasBeenSet(false), m_eulaIdHasBeenSet(false), m_nameHasBeenSet(false), m_updatedAtHasBeenSet(false) { } Eula::Eula(JsonView jsonValue) : m_contentHasBeenSet(false), m_createdAtHasBeenSet(false), m_eulaIdHasBeenSet(false), m_nameHasBeenSet(false), m_updatedAtHasBeenSet(false) { *this = jsonValue; } Eula& Eula::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("content")) { m_content = jsonValue.GetString("content"); m_contentHasBeenSet = true; } if(jsonValue.ValueExists("createdAt")) { m_createdAt = jsonValue.GetString("createdAt"); m_createdAtHasBeenSet = true; } if(jsonValue.ValueExists("eulaId")) { m_eulaId = jsonValue.GetString("eulaId"); m_eulaIdHasBeenSet = true; } if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("updatedAt")) { m_updatedAt = jsonValue.GetString("updatedAt"); m_updatedAtHasBeenSet = true; } return *this; } JsonValue Eula::Jsonize() const { JsonValue payload; if(m_contentHasBeenSet) { payload.WithString("content", m_content); } if(m_createdAtHasBeenSet) { payload.WithString("createdAt", m_createdAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } if(m_eulaIdHasBeenSet) { payload.WithString("eulaId", m_eulaId); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_updatedAtHasBeenSet) { payload.WithString("updatedAt", m_updatedAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } return payload; } } // namespace Model } // namespace NimbleStudio } // namespace Aws