/** * 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 Connect { namespace Model { ReadOnlyFieldInfo::ReadOnlyFieldInfo() : m_idHasBeenSet(false) { } ReadOnlyFieldInfo::ReadOnlyFieldInfo(JsonView jsonValue) : m_idHasBeenSet(false) { *this = jsonValue; } ReadOnlyFieldInfo& ReadOnlyFieldInfo::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Id")) { m_id = jsonValue.GetObject("Id"); m_idHasBeenSet = true; } return *this; } JsonValue ReadOnlyFieldInfo::Jsonize() const { JsonValue payload; if(m_idHasBeenSet) { payload.WithObject("Id", m_id.Jsonize()); } return payload; } } // namespace Model } // namespace Connect } // namespace Aws