/** * 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 ServerlessApplicationRepository { namespace Model { RollbackTrigger::RollbackTrigger() : m_arnHasBeenSet(false), m_typeHasBeenSet(false) { } RollbackTrigger::RollbackTrigger(JsonView jsonValue) : m_arnHasBeenSet(false), m_typeHasBeenSet(false) { *this = jsonValue; } RollbackTrigger& RollbackTrigger::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("arn")) { m_arn = jsonValue.GetString("arn"); m_arnHasBeenSet = true; } if(jsonValue.ValueExists("type")) { m_type = jsonValue.GetString("type"); m_typeHasBeenSet = true; } return *this; } JsonValue RollbackTrigger::Jsonize() const { JsonValue payload; if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } if(m_typeHasBeenSet) { payload.WithString("type", m_type); } return payload; } } // namespace Model } // namespace ServerlessApplicationRepository } // namespace Aws