/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::DevOpsGuru::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DescribeOrganizationOverviewRequest::DescribeOrganizationOverviewRequest() : m_fromTimeHasBeenSet(false), m_toTimeHasBeenSet(false), m_accountIdsHasBeenSet(false), m_organizationalUnitIdsHasBeenSet(false) { } Aws::String DescribeOrganizationOverviewRequest::SerializePayload() const { JsonValue payload; if(m_fromTimeHasBeenSet) { payload.WithDouble("FromTime", m_fromTime.SecondsWithMSPrecision()); } if(m_toTimeHasBeenSet) { payload.WithDouble("ToTime", m_toTime.SecondsWithMSPrecision()); } if(m_accountIdsHasBeenSet) { Aws::Utils::Array accountIdsJsonList(m_accountIds.size()); for(unsigned accountIdsIndex = 0; accountIdsIndex < accountIdsJsonList.GetLength(); ++accountIdsIndex) { accountIdsJsonList[accountIdsIndex].AsString(m_accountIds[accountIdsIndex]); } payload.WithArray("AccountIds", std::move(accountIdsJsonList)); } if(m_organizationalUnitIdsHasBeenSet) { Aws::Utils::Array organizationalUnitIdsJsonList(m_organizationalUnitIds.size()); for(unsigned organizationalUnitIdsIndex = 0; organizationalUnitIdsIndex < organizationalUnitIdsJsonList.GetLength(); ++organizationalUnitIdsIndex) { organizationalUnitIdsJsonList[organizationalUnitIdsIndex].AsString(m_organizationalUnitIds[organizationalUnitIdsIndex]); } payload.WithArray("OrganizationalUnitIds", std::move(organizationalUnitIdsJsonList)); } return payload.View().WriteReadable(); }