/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CodeStarNotifications::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; SubscribeRequest::SubscribeRequest() : m_arnHasBeenSet(false), m_targetHasBeenSet(false), m_clientRequestTokenHasBeenSet(false) { } Aws::String SubscribeRequest::SerializePayload() const { JsonValue payload; if(m_arnHasBeenSet) { payload.WithString("Arn", m_arn); } if(m_targetHasBeenSet) { payload.WithObject("Target", m_target.Jsonize()); } if(m_clientRequestTokenHasBeenSet) { payload.WithString("ClientRequestToken", m_clientRequestToken); } return payload.View().WriteReadable(); }