/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include using namespace Aws::WAFV2::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; using namespace Aws; CheckCapacityResult::CheckCapacityResult() : m_capacity(0) { } CheckCapacityResult::CheckCapacityResult(const Aws::AmazonWebServiceResult& result) : m_capacity(0) { *this = result; } CheckCapacityResult& CheckCapacityResult::operator =(const Aws::AmazonWebServiceResult& result) { JsonView jsonValue = result.GetPayload().View(); if(jsonValue.ValueExists("Capacity")) { m_capacity = jsonValue.GetInt64("Capacity"); } return *this; }