/** * 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 OpenSearchService { namespace Model { SoftwareUpdateOptionsStatus::SoftwareUpdateOptionsStatus() : m_optionsHasBeenSet(false), m_statusHasBeenSet(false) { } SoftwareUpdateOptionsStatus::SoftwareUpdateOptionsStatus(JsonView jsonValue) : m_optionsHasBeenSet(false), m_statusHasBeenSet(false) { *this = jsonValue; } SoftwareUpdateOptionsStatus& SoftwareUpdateOptionsStatus::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Options")) { m_options = jsonValue.GetObject("Options"); m_optionsHasBeenSet = true; } if(jsonValue.ValueExists("Status")) { m_status = jsonValue.GetObject("Status"); m_statusHasBeenSet = true; } return *this; } JsonValue SoftwareUpdateOptionsStatus::Jsonize() const { JsonValue payload; if(m_optionsHasBeenSet) { payload.WithObject("Options", m_options.Jsonize()); } if(m_statusHasBeenSet) { payload.WithObject("Status", m_status.Jsonize()); } return payload; } } // namespace Model } // namespace OpenSearchService } // namespace Aws