This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-lambda/source/model/OnFailure.cpp

60 lines
975 B
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/lambda/model/OnFailure.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Lambda
{
namespace Model
{
OnFailure::OnFailure() :
m_destinationHasBeenSet(false)
{
}
OnFailure::OnFailure(JsonView jsonValue) :
m_destinationHasBeenSet(false)
{
*this = jsonValue;
}
OnFailure& OnFailure::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Destination"))
{
m_destination = jsonValue.GetString("Destination");
m_destinationHasBeenSet = true;
}
return *this;
}
JsonValue OnFailure::Jsonize() const
{
JsonValue payload;
if(m_destinationHasBeenSet)
{
payload.WithString("Destination", m_destination);
}
return payload;
}
} // namespace Model
} // namespace Lambda
} // namespace Aws