89 lines
1.8 KiB
C++
89 lines
1.8 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/workmail/model/DescribeOrganizationResult.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
#include <aws/core/AmazonWebServiceResult.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/UnreferencedParam.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::WorkMail::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
using namespace Aws;
|
|
|
|
DescribeOrganizationResult::DescribeOrganizationResult()
|
|
{
|
|
}
|
|
|
|
DescribeOrganizationResult::DescribeOrganizationResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
*this = result;
|
|
}
|
|
|
|
DescribeOrganizationResult& DescribeOrganizationResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
JsonView jsonValue = result.GetPayload().View();
|
|
if(jsonValue.ValueExists("OrganizationId"))
|
|
{
|
|
m_organizationId = jsonValue.GetString("OrganizationId");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("Alias"))
|
|
{
|
|
m_alias = jsonValue.GetString("Alias");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("State"))
|
|
{
|
|
m_state = jsonValue.GetString("State");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("DirectoryId"))
|
|
{
|
|
m_directoryId = jsonValue.GetString("DirectoryId");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("DirectoryType"))
|
|
{
|
|
m_directoryType = jsonValue.GetString("DirectoryType");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("DefaultMailDomain"))
|
|
{
|
|
m_defaultMailDomain = jsonValue.GetString("DefaultMailDomain");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("CompletedDate"))
|
|
{
|
|
m_completedDate = jsonValue.GetDouble("CompletedDate");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("ErrorMessage"))
|
|
{
|
|
m_errorMessage = jsonValue.GetString("ErrorMessage");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("ARN"))
|
|
{
|
|
m_aRN = jsonValue.GetString("ARN");
|
|
|
|
}
|
|
|
|
|
|
|
|
return *this;
|
|
}
|