/** * 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 WorkSpacesWeb { namespace Model { IpRule::IpRule() : m_descriptionHasBeenSet(false), m_ipRangeHasBeenSet(false) { } IpRule::IpRule(JsonView jsonValue) : m_descriptionHasBeenSet(false), m_ipRangeHasBeenSet(false) { *this = jsonValue; } IpRule& IpRule::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("description")) { m_description = jsonValue.GetString("description"); m_descriptionHasBeenSet = true; } if(jsonValue.ValueExists("ipRange")) { m_ipRange = jsonValue.GetString("ipRange"); m_ipRangeHasBeenSet = true; } return *this; } JsonValue IpRule::Jsonize() const { JsonValue payload; if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_ipRangeHasBeenSet) { payload.WithString("ipRange", m_ipRange); } return payload; } } // namespace Model } // namespace WorkSpacesWeb } // namespace Aws