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