/** * 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 EventBridge { namespace Model { UpdateConnectionOAuthClientRequestParameters::UpdateConnectionOAuthClientRequestParameters() : m_clientIDHasBeenSet(false), m_clientSecretHasBeenSet(false) { } UpdateConnectionOAuthClientRequestParameters::UpdateConnectionOAuthClientRequestParameters(JsonView jsonValue) : m_clientIDHasBeenSet(false), m_clientSecretHasBeenSet(false) { *this = jsonValue; } UpdateConnectionOAuthClientRequestParameters& UpdateConnectionOAuthClientRequestParameters::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; } return *this; } JsonValue UpdateConnectionOAuthClientRequestParameters::Jsonize() const { JsonValue payload; if(m_clientIDHasBeenSet) { payload.WithString("ClientID", m_clientID); } if(m_clientSecretHasBeenSet) { payload.WithString("ClientSecret", m_clientSecret); } return payload; } } // namespace Model } // namespace EventBridge } // namespace Aws