/** * 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 KinesisAnalyticsV2 { namespace Model { ApplicationCodeConfigurationUpdate::ApplicationCodeConfigurationUpdate() : m_codeContentTypeUpdate(CodeContentType::NOT_SET), m_codeContentTypeUpdateHasBeenSet(false), m_codeContentUpdateHasBeenSet(false) { } ApplicationCodeConfigurationUpdate::ApplicationCodeConfigurationUpdate(JsonView jsonValue) : m_codeContentTypeUpdate(CodeContentType::NOT_SET), m_codeContentTypeUpdateHasBeenSet(false), m_codeContentUpdateHasBeenSet(false) { *this = jsonValue; } ApplicationCodeConfigurationUpdate& ApplicationCodeConfigurationUpdate::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("CodeContentTypeUpdate")) { m_codeContentTypeUpdate = CodeContentTypeMapper::GetCodeContentTypeForName(jsonValue.GetString("CodeContentTypeUpdate")); m_codeContentTypeUpdateHasBeenSet = true; } if(jsonValue.ValueExists("CodeContentUpdate")) { m_codeContentUpdate = jsonValue.GetObject("CodeContentUpdate"); m_codeContentUpdateHasBeenSet = true; } return *this; } JsonValue ApplicationCodeConfigurationUpdate::Jsonize() const { JsonValue payload; if(m_codeContentTypeUpdateHasBeenSet) { payload.WithString("CodeContentTypeUpdate", CodeContentTypeMapper::GetNameForCodeContentType(m_codeContentTypeUpdate)); } if(m_codeContentUpdateHasBeenSet) { payload.WithObject("CodeContentUpdate", m_codeContentUpdate.Jsonize()); } return payload; } } // namespace Model } // namespace KinesisAnalyticsV2 } // namespace Aws