/** * 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 ConnectCases { namespace Model { RelatedItemContent::RelatedItemContent() : m_commentHasBeenSet(false), m_contactHasBeenSet(false) { } RelatedItemContent::RelatedItemContent(JsonView jsonValue) : m_commentHasBeenSet(false), m_contactHasBeenSet(false) { *this = jsonValue; } RelatedItemContent& RelatedItemContent::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("comment")) { m_comment = jsonValue.GetObject("comment"); m_commentHasBeenSet = true; } if(jsonValue.ValueExists("contact")) { m_contact = jsonValue.GetObject("contact"); m_contactHasBeenSet = true; } return *this; } JsonValue RelatedItemContent::Jsonize() const { JsonValue payload; if(m_commentHasBeenSet) { payload.WithObject("comment", m_comment.Jsonize()); } if(m_contactHasBeenSet) { payload.WithObject("contact", m_contact.Jsonize()); } return payload; } } // namespace Model } // namespace ConnectCases } // namespace Aws