/** * 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 EKS { namespace Model { UpdateParam::UpdateParam() : m_type(UpdateParamType::NOT_SET), m_typeHasBeenSet(false), m_valueHasBeenSet(false) { } UpdateParam::UpdateParam(JsonView jsonValue) : m_type(UpdateParamType::NOT_SET), m_typeHasBeenSet(false), m_valueHasBeenSet(false) { *this = jsonValue; } UpdateParam& UpdateParam::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("type")) { m_type = UpdateParamTypeMapper::GetUpdateParamTypeForName(jsonValue.GetString("type")); m_typeHasBeenSet = true; } if(jsonValue.ValueExists("value")) { m_value = jsonValue.GetString("value"); m_valueHasBeenSet = true; } return *this; } JsonValue UpdateParam::Jsonize() const { JsonValue payload; if(m_typeHasBeenSet) { payload.WithString("type", UpdateParamTypeMapper::GetNameForUpdateParamType(m_type)); } if(m_valueHasBeenSet) { payload.WithString("value", m_value); } return payload; } } // namespace Model } // namespace EKS } // namespace Aws