/** * 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 AppMesh { namespace Model { TlsValidationContext::TlsValidationContext() : m_trustHasBeenSet(false) { } TlsValidationContext::TlsValidationContext(JsonView jsonValue) : m_trustHasBeenSet(false) { *this = jsonValue; } TlsValidationContext& TlsValidationContext::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("trust")) { m_trust = jsonValue.GetObject("trust"); m_trustHasBeenSet = true; } return *this; } JsonValue TlsValidationContext::Jsonize() const { JsonValue payload; if(m_trustHasBeenSet) { payload.WithObject("trust", m_trust.Jsonize()); } return payload; } } // namespace Model } // namespace AppMesh } // namespace Aws