/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include #include using namespace Aws::IdentityStore::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; DescribeGroupResult::DescribeGroupResult() { } DescribeGroupResult::DescribeGroupResult(const Aws::AmazonWebServiceResult& result) { *this = result; } DescribeGroupResult& DescribeGroupResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("GroupId")) { m_groupId = jsonValue.GetString("GroupId"); } if(jsonValue.ValueExists("DisplayName")) { m_displayName = jsonValue.GetString("DisplayName"); } if(jsonValue.ValueExists("ExternalIds")) { Aws::Utils::Array externalIdsJsonList = jsonValue.GetArray("ExternalIds"); for(unsigned externalIdsIndex = 0; externalIdsIndex < externalIdsJsonList.GetLength(); ++externalIdsIndex) { m_externalIds.push_back(externalIdsJsonList[externalIdsIndex].AsObject()); } } if(jsonValue.ValueExists("Description")) { m_description = jsonValue.GetString("Description"); } if(jsonValue.ValueExists("IdentityStoreId")) { m_identityStoreId = jsonValue.GetString("IdentityStoreId"); } const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }