/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::LocationService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateKeyRequest::UpdateKeyRequest() : m_descriptionHasBeenSet(false), m_expireTimeHasBeenSet(false), m_forceUpdate(false), m_forceUpdateHasBeenSet(false), m_keyNameHasBeenSet(false), m_noExpiry(false), m_noExpiryHasBeenSet(false), m_restrictionsHasBeenSet(false) { } Aws::String UpdateKeyRequest::SerializePayload() const { JsonValue payload; if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_expireTimeHasBeenSet) { payload.WithString("ExpireTime", m_expireTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } if(m_forceUpdateHasBeenSet) { payload.WithBool("ForceUpdate", m_forceUpdate); } if(m_noExpiryHasBeenSet) { payload.WithBool("NoExpiry", m_noExpiry); } if(m_restrictionsHasBeenSet) { payload.WithObject("Restrictions", m_restrictions.Jsonize()); } return payload.View().WriteReadable(); }