/** * 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 SESV2 { namespace Model { DkimSigningAttributes::DkimSigningAttributes() : m_domainSigningSelectorHasBeenSet(false), m_domainSigningPrivateKeyHasBeenSet(false), m_nextSigningKeyLength(DkimSigningKeyLength::NOT_SET), m_nextSigningKeyLengthHasBeenSet(false) { } DkimSigningAttributes::DkimSigningAttributes(JsonView jsonValue) : m_domainSigningSelectorHasBeenSet(false), m_domainSigningPrivateKeyHasBeenSet(false), m_nextSigningKeyLength(DkimSigningKeyLength::NOT_SET), m_nextSigningKeyLengthHasBeenSet(false) { *this = jsonValue; } DkimSigningAttributes& DkimSigningAttributes::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("DomainSigningSelector")) { m_domainSigningSelector = jsonValue.GetString("DomainSigningSelector"); m_domainSigningSelectorHasBeenSet = true; } if(jsonValue.ValueExists("DomainSigningPrivateKey")) { m_domainSigningPrivateKey = jsonValue.GetString("DomainSigningPrivateKey"); m_domainSigningPrivateKeyHasBeenSet = true; } if(jsonValue.ValueExists("NextSigningKeyLength")) { m_nextSigningKeyLength = DkimSigningKeyLengthMapper::GetDkimSigningKeyLengthForName(jsonValue.GetString("NextSigningKeyLength")); m_nextSigningKeyLengthHasBeenSet = true; } return *this; } JsonValue DkimSigningAttributes::Jsonize() const { JsonValue payload; if(m_domainSigningSelectorHasBeenSet) { payload.WithString("DomainSigningSelector", m_domainSigningSelector); } if(m_domainSigningPrivateKeyHasBeenSet) { payload.WithString("DomainSigningPrivateKey", m_domainSigningPrivateKey); } if(m_nextSigningKeyLengthHasBeenSet) { payload.WithString("NextSigningKeyLength", DkimSigningKeyLengthMapper::GetNameForDkimSigningKeyLength(m_nextSigningKeyLength)); } return payload; } } // namespace Model } // namespace SESV2 } // namespace Aws