/** * 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 signer { namespace Model { SigningConfiguration::SigningConfiguration() : m_encryptionAlgorithmOptionsHasBeenSet(false), m_hashAlgorithmOptionsHasBeenSet(false) { } SigningConfiguration::SigningConfiguration(JsonView jsonValue) : m_encryptionAlgorithmOptionsHasBeenSet(false), m_hashAlgorithmOptionsHasBeenSet(false) { *this = jsonValue; } SigningConfiguration& SigningConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("encryptionAlgorithmOptions")) { m_encryptionAlgorithmOptions = jsonValue.GetObject("encryptionAlgorithmOptions"); m_encryptionAlgorithmOptionsHasBeenSet = true; } if(jsonValue.ValueExists("hashAlgorithmOptions")) { m_hashAlgorithmOptions = jsonValue.GetObject("hashAlgorithmOptions"); m_hashAlgorithmOptionsHasBeenSet = true; } return *this; } JsonValue SigningConfiguration::Jsonize() const { JsonValue payload; if(m_encryptionAlgorithmOptionsHasBeenSet) { payload.WithObject("encryptionAlgorithmOptions", m_encryptionAlgorithmOptions.Jsonize()); } if(m_hashAlgorithmOptionsHasBeenSet) { payload.WithObject("hashAlgorithmOptions", m_hashAlgorithmOptions.Jsonize()); } return payload; } } // namespace Model } // namespace signer } // namespace Aws