/** * 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 { CrossClusterSearchConnectionProperties::CrossClusterSearchConnectionProperties() : m_skipUnavailable(SkipUnavailableStatus::NOT_SET), m_skipUnavailableHasBeenSet(false) { } CrossClusterSearchConnectionProperties::CrossClusterSearchConnectionProperties(JsonView jsonValue) : m_skipUnavailable(SkipUnavailableStatus::NOT_SET), m_skipUnavailableHasBeenSet(false) { *this = jsonValue; } CrossClusterSearchConnectionProperties& CrossClusterSearchConnectionProperties::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("SkipUnavailable")) { m_skipUnavailable = SkipUnavailableStatusMapper::GetSkipUnavailableStatusForName(jsonValue.GetString("SkipUnavailable")); m_skipUnavailableHasBeenSet = true; } return *this; } JsonValue CrossClusterSearchConnectionProperties::Jsonize() const { JsonValue payload; if(m_skipUnavailableHasBeenSet) { payload.WithString("SkipUnavailable", SkipUnavailableStatusMapper::GetNameForSkipUnavailableStatus(m_skipUnavailable)); } return payload; } } // namespace Model } // namespace OpenSearchService } // namespace Aws