/** * 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 Appflow { namespace Model { HoneycodeMetadata::HoneycodeMetadata() : m_oAuthScopesHasBeenSet(false) { } HoneycodeMetadata::HoneycodeMetadata(JsonView jsonValue) : m_oAuthScopesHasBeenSet(false) { *this = jsonValue; } HoneycodeMetadata& HoneycodeMetadata::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("oAuthScopes")) { Aws::Utils::Array oAuthScopesJsonList = jsonValue.GetArray("oAuthScopes"); for(unsigned oAuthScopesIndex = 0; oAuthScopesIndex < oAuthScopesJsonList.GetLength(); ++oAuthScopesIndex) { m_oAuthScopes.push_back(oAuthScopesJsonList[oAuthScopesIndex].AsString()); } m_oAuthScopesHasBeenSet = true; } return *this; } JsonValue HoneycodeMetadata::Jsonize() const { JsonValue payload; if(m_oAuthScopesHasBeenSet) { Aws::Utils::Array oAuthScopesJsonList(m_oAuthScopes.size()); for(unsigned oAuthScopesIndex = 0; oAuthScopesIndex < oAuthScopesJsonList.GetLength(); ++oAuthScopesIndex) { oAuthScopesJsonList[oAuthScopesIndex].AsString(m_oAuthScopes[oAuthScopesIndex]); } payload.WithArray("oAuthScopes", std::move(oAuthScopesJsonList)); } return payload; } } // namespace Model } // namespace Appflow } // namespace Aws