/** * 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 SSOAdmin { namespace Model { InstanceMetadata::InstanceMetadata() : m_instanceArnHasBeenSet(false), m_identityStoreIdHasBeenSet(false) { } InstanceMetadata::InstanceMetadata(JsonView jsonValue) : m_instanceArnHasBeenSet(false), m_identityStoreIdHasBeenSet(false) { *this = jsonValue; } InstanceMetadata& InstanceMetadata::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("InstanceArn")) { m_instanceArn = jsonValue.GetString("InstanceArn"); m_instanceArnHasBeenSet = true; } if(jsonValue.ValueExists("IdentityStoreId")) { m_identityStoreId = jsonValue.GetString("IdentityStoreId"); m_identityStoreIdHasBeenSet = true; } return *this; } JsonValue InstanceMetadata::Jsonize() const { JsonValue payload; if(m_instanceArnHasBeenSet) { payload.WithString("InstanceArn", m_instanceArn); } if(m_identityStoreIdHasBeenSet) { payload.WithString("IdentityStoreId", m_identityStoreId); } return payload; } } // namespace Model } // namespace SSOAdmin } // namespace Aws