/** * 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 AmplifyUIBuilder { namespace Model { RefreshTokenRequestBody::RefreshTokenRequestBody() : m_tokenHasBeenSet(false), m_clientIdHasBeenSet(false) { } RefreshTokenRequestBody::RefreshTokenRequestBody(JsonView jsonValue) : m_tokenHasBeenSet(false), m_clientIdHasBeenSet(false) { *this = jsonValue; } RefreshTokenRequestBody& RefreshTokenRequestBody::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("token")) { m_token = jsonValue.GetString("token"); m_tokenHasBeenSet = true; } if(jsonValue.ValueExists("clientId")) { m_clientId = jsonValue.GetString("clientId"); m_clientIdHasBeenSet = true; } return *this; } JsonValue RefreshTokenRequestBody::Jsonize() const { JsonValue payload; if(m_tokenHasBeenSet) { payload.WithString("token", m_token); } if(m_clientIdHasBeenSet) { payload.WithString("clientId", m_clientId); } return payload; } } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws