/** * 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 Pinpoint { namespace Model { ADMChannelRequest::ADMChannelRequest() : m_clientIdHasBeenSet(false), m_clientSecretHasBeenSet(false), m_enabled(false), m_enabledHasBeenSet(false) { } ADMChannelRequest::ADMChannelRequest(JsonView jsonValue) : m_clientIdHasBeenSet(false), m_clientSecretHasBeenSet(false), m_enabled(false), m_enabledHasBeenSet(false) { *this = jsonValue; } ADMChannelRequest& ADMChannelRequest::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ClientId")) { m_clientId = jsonValue.GetString("ClientId"); m_clientIdHasBeenSet = true; } if(jsonValue.ValueExists("ClientSecret")) { m_clientSecret = jsonValue.GetString("ClientSecret"); m_clientSecretHasBeenSet = true; } if(jsonValue.ValueExists("Enabled")) { m_enabled = jsonValue.GetBool("Enabled"); m_enabledHasBeenSet = true; } return *this; } JsonValue ADMChannelRequest::Jsonize() const { JsonValue payload; if(m_clientIdHasBeenSet) { payload.WithString("ClientId", m_clientId); } if(m_clientSecretHasBeenSet) { payload.WithString("ClientSecret", m_clientSecret); } if(m_enabledHasBeenSet) { payload.WithBool("Enabled", m_enabled); } return payload; } } // namespace Model } // namespace Pinpoint } // namespace Aws