/** * 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 APIGateway { namespace Model { MutualTlsAuthenticationInput::MutualTlsAuthenticationInput() : m_truststoreUriHasBeenSet(false), m_truststoreVersionHasBeenSet(false) { } MutualTlsAuthenticationInput::MutualTlsAuthenticationInput(JsonView jsonValue) : m_truststoreUriHasBeenSet(false), m_truststoreVersionHasBeenSet(false) { *this = jsonValue; } MutualTlsAuthenticationInput& MutualTlsAuthenticationInput::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("truststoreUri")) { m_truststoreUri = jsonValue.GetString("truststoreUri"); m_truststoreUriHasBeenSet = true; } if(jsonValue.ValueExists("truststoreVersion")) { m_truststoreVersion = jsonValue.GetString("truststoreVersion"); m_truststoreVersionHasBeenSet = true; } return *this; } JsonValue MutualTlsAuthenticationInput::Jsonize() const { JsonValue payload; if(m_truststoreUriHasBeenSet) { payload.WithString("truststoreUri", m_truststoreUri); } if(m_truststoreVersionHasBeenSet) { payload.WithString("truststoreVersion", m_truststoreVersion); } return payload; } } // namespace Model } // namespace APIGateway } // namespace Aws