/** * 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 SecurityHub { namespace Model { AwsRdsDbInstanceAssociatedRole::AwsRdsDbInstanceAssociatedRole() : m_roleArnHasBeenSet(false), m_featureNameHasBeenSet(false), m_statusHasBeenSet(false) { } AwsRdsDbInstanceAssociatedRole::AwsRdsDbInstanceAssociatedRole(JsonView jsonValue) : m_roleArnHasBeenSet(false), m_featureNameHasBeenSet(false), m_statusHasBeenSet(false) { *this = jsonValue; } AwsRdsDbInstanceAssociatedRole& AwsRdsDbInstanceAssociatedRole::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("RoleArn")) { m_roleArn = jsonValue.GetString("RoleArn"); m_roleArnHasBeenSet = true; } if(jsonValue.ValueExists("FeatureName")) { m_featureName = jsonValue.GetString("FeatureName"); m_featureNameHasBeenSet = true; } if(jsonValue.ValueExists("Status")) { m_status = jsonValue.GetString("Status"); m_statusHasBeenSet = true; } return *this; } JsonValue AwsRdsDbInstanceAssociatedRole::Jsonize() const { JsonValue payload; if(m_roleArnHasBeenSet) { payload.WithString("RoleArn", m_roleArn); } if(m_featureNameHasBeenSet) { payload.WithString("FeatureName", m_featureName); } if(m_statusHasBeenSet) { payload.WithString("Status", m_status); } return payload; } } // namespace Model } // namespace SecurityHub } // namespace Aws