/** * 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 VerifiedPermissions { namespace Model { PolicyStoreItem::PolicyStoreItem() : m_policyStoreIdHasBeenSet(false), m_arnHasBeenSet(false), m_createdDateHasBeenSet(false) { } PolicyStoreItem::PolicyStoreItem(JsonView jsonValue) : m_policyStoreIdHasBeenSet(false), m_arnHasBeenSet(false), m_createdDateHasBeenSet(false) { *this = jsonValue; } PolicyStoreItem& PolicyStoreItem::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("policyStoreId")) { m_policyStoreId = jsonValue.GetString("policyStoreId"); m_policyStoreIdHasBeenSet = true; } if(jsonValue.ValueExists("arn")) { m_arn = jsonValue.GetString("arn"); m_arnHasBeenSet = true; } if(jsonValue.ValueExists("createdDate")) { m_createdDate = jsonValue.GetString("createdDate"); m_createdDateHasBeenSet = true; } return *this; } JsonValue PolicyStoreItem::Jsonize() const { JsonValue payload; if(m_policyStoreIdHasBeenSet) { payload.WithString("policyStoreId", m_policyStoreId); } if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } if(m_createdDateHasBeenSet) { payload.WithString("createdDate", m_createdDate.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } return payload; } } // namespace Model } // namespace VerifiedPermissions } // namespace Aws