/** * 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 { GeneratedPolicyProperties::GeneratedPolicyProperties() : m_isComplete(false), m_isCompleteHasBeenSet(false), m_principalArnHasBeenSet(false), m_cloudTrailPropertiesHasBeenSet(false) { } GeneratedPolicyProperties::GeneratedPolicyProperties(JsonView jsonValue) : m_isComplete(false), m_isCompleteHasBeenSet(false), m_principalArnHasBeenSet(false), m_cloudTrailPropertiesHasBeenSet(false) { *this = jsonValue; } GeneratedPolicyProperties& GeneratedPolicyProperties::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("isComplete")) { m_isComplete = jsonValue.GetBool("isComplete"); m_isCompleteHasBeenSet = true; } if(jsonValue.ValueExists("principalArn")) { m_principalArn = jsonValue.GetString("principalArn"); m_principalArnHasBeenSet = true; } if(jsonValue.ValueExists("cloudTrailProperties")) { m_cloudTrailProperties = jsonValue.GetObject("cloudTrailProperties"); m_cloudTrailPropertiesHasBeenSet = true; } return *this; } JsonValue GeneratedPolicyProperties::Jsonize() const { JsonValue payload; if(m_isCompleteHasBeenSet) { payload.WithBool("isComplete", m_isComplete); } if(m_principalArnHasBeenSet) { payload.WithString("principalArn", m_principalArn); } if(m_cloudTrailPropertiesHasBeenSet) { payload.WithObject("cloudTrailProperties", m_cloudTrailProperties.Jsonize()); } return payload; } } // namespace Model } // namespace AccessAnalyzer } // namespace Aws