/** * 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 Synthetics { namespace Model { CanaryCodeOutput::CanaryCodeOutput() : m_sourceLocationArnHasBeenSet(false), m_handlerHasBeenSet(false) { } CanaryCodeOutput::CanaryCodeOutput(JsonView jsonValue) : m_sourceLocationArnHasBeenSet(false), m_handlerHasBeenSet(false) { *this = jsonValue; } CanaryCodeOutput& CanaryCodeOutput::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("SourceLocationArn")) { m_sourceLocationArn = jsonValue.GetString("SourceLocationArn"); m_sourceLocationArnHasBeenSet = true; } if(jsonValue.ValueExists("Handler")) { m_handler = jsonValue.GetString("Handler"); m_handlerHasBeenSet = true; } return *this; } JsonValue CanaryCodeOutput::Jsonize() const { JsonValue payload; if(m_sourceLocationArnHasBeenSet) { payload.WithString("SourceLocationArn", m_sourceLocationArn); } if(m_handlerHasBeenSet) { payload.WithString("Handler", m_handler); } return payload; } } // namespace Model } // namespace Synthetics } // namespace Aws