/** * 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 Proton { namespace Model { ServicePipelineState::ServicePipelineState() : m_specHasBeenSet(false), m_templateMajorVersionHasBeenSet(false), m_templateMinorVersionHasBeenSet(false), m_templateNameHasBeenSet(false) { } ServicePipelineState::ServicePipelineState(JsonView jsonValue) : m_specHasBeenSet(false), m_templateMajorVersionHasBeenSet(false), m_templateMinorVersionHasBeenSet(false), m_templateNameHasBeenSet(false) { *this = jsonValue; } ServicePipelineState& ServicePipelineState::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("spec")) { m_spec = jsonValue.GetString("spec"); m_specHasBeenSet = true; } if(jsonValue.ValueExists("templateMajorVersion")) { m_templateMajorVersion = jsonValue.GetString("templateMajorVersion"); m_templateMajorVersionHasBeenSet = true; } if(jsonValue.ValueExists("templateMinorVersion")) { m_templateMinorVersion = jsonValue.GetString("templateMinorVersion"); m_templateMinorVersionHasBeenSet = true; } if(jsonValue.ValueExists("templateName")) { m_templateName = jsonValue.GetString("templateName"); m_templateNameHasBeenSet = true; } return *this; } JsonValue ServicePipelineState::Jsonize() const { JsonValue payload; if(m_specHasBeenSet) { payload.WithString("spec", m_spec); } if(m_templateMajorVersionHasBeenSet) { payload.WithString("templateMajorVersion", m_templateMajorVersion); } if(m_templateMinorVersionHasBeenSet) { payload.WithString("templateMinorVersion", m_templateMinorVersion); } if(m_templateNameHasBeenSet) { payload.WithString("templateName", m_templateName); } return payload; } } // namespace Model } // namespace Proton } // namespace Aws