/** * 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 AccessAnalyzer { namespace Model { AclGrantee::AclGrantee() : m_idHasBeenSet(false), m_uriHasBeenSet(false) { } AclGrantee::AclGrantee(JsonView jsonValue) : m_idHasBeenSet(false), m_uriHasBeenSet(false) { *this = jsonValue; } AclGrantee& AclGrantee::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); m_idHasBeenSet = true; } if(jsonValue.ValueExists("uri")) { m_uri = jsonValue.GetString("uri"); m_uriHasBeenSet = true; } return *this; } JsonValue AclGrantee::Jsonize() const { JsonValue payload; if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_uriHasBeenSet) { payload.WithString("uri", m_uri); } return payload; } } // namespace Model } // namespace AccessAnalyzer } // namespace Aws