/** * 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 IoT { namespace Model { CustomCodeSigning::CustomCodeSigning() : m_signatureHasBeenSet(false), m_certificateChainHasBeenSet(false), m_hashAlgorithmHasBeenSet(false), m_signatureAlgorithmHasBeenSet(false) { } CustomCodeSigning::CustomCodeSigning(JsonView jsonValue) : m_signatureHasBeenSet(false), m_certificateChainHasBeenSet(false), m_hashAlgorithmHasBeenSet(false), m_signatureAlgorithmHasBeenSet(false) { *this = jsonValue; } CustomCodeSigning& CustomCodeSigning::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("signature")) { m_signature = jsonValue.GetObject("signature"); m_signatureHasBeenSet = true; } if(jsonValue.ValueExists("certificateChain")) { m_certificateChain = jsonValue.GetObject("certificateChain"); m_certificateChainHasBeenSet = true; } if(jsonValue.ValueExists("hashAlgorithm")) { m_hashAlgorithm = jsonValue.GetString("hashAlgorithm"); m_hashAlgorithmHasBeenSet = true; } if(jsonValue.ValueExists("signatureAlgorithm")) { m_signatureAlgorithm = jsonValue.GetString("signatureAlgorithm"); m_signatureAlgorithmHasBeenSet = true; } return *this; } JsonValue CustomCodeSigning::Jsonize() const { JsonValue payload; if(m_signatureHasBeenSet) { payload.WithObject("signature", m_signature.Jsonize()); } if(m_certificateChainHasBeenSet) { payload.WithObject("certificateChain", m_certificateChain.Jsonize()); } if(m_hashAlgorithmHasBeenSet) { payload.WithString("hashAlgorithm", m_hashAlgorithm); } if(m_signatureAlgorithmHasBeenSet) { payload.WithString("signatureAlgorithm", m_signatureAlgorithm); } return payload; } } // namespace Model } // namespace IoT } // namespace Aws