/** * 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 Keyspaces { namespace Model { PartitionKey::PartitionKey() : m_nameHasBeenSet(false) { } PartitionKey::PartitionKey(JsonView jsonValue) : m_nameHasBeenSet(false) { *this = jsonValue; } PartitionKey& PartitionKey::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } return *this; } JsonValue PartitionKey::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } return payload; } } // namespace Model } // namespace Keyspaces } // namespace Aws