/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/securityhub/model/AwsIamGroupPolicy.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace SecurityHub { namespace Model { AwsIamGroupPolicy::AwsIamGroupPolicy() : m_policyNameHasBeenSet(false) { } AwsIamGroupPolicy::AwsIamGroupPolicy(JsonView jsonValue) : m_policyNameHasBeenSet(false) { *this = jsonValue; } AwsIamGroupPolicy& AwsIamGroupPolicy::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("PolicyName")) { m_policyName = jsonValue.GetString("PolicyName"); m_policyNameHasBeenSet = true; } return *this; } JsonValue AwsIamGroupPolicy::Jsonize() const { JsonValue payload; if(m_policyNameHasBeenSet) { payload.WithString("PolicyName", m_policyName); } return payload; } } // namespace Model } // namespace SecurityHub } // namespace Aws