/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::SupportApp::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateSlackChannelConfigurationRequest::CreateSlackChannelConfigurationRequest() : m_channelIdHasBeenSet(false), m_channelNameHasBeenSet(false), m_channelRoleArnHasBeenSet(false), m_notifyOnAddCorrespondenceToCase(false), m_notifyOnAddCorrespondenceToCaseHasBeenSet(false), m_notifyOnCaseSeverity(NotificationSeverityLevel::NOT_SET), m_notifyOnCaseSeverityHasBeenSet(false), m_notifyOnCreateOrReopenCase(false), m_notifyOnCreateOrReopenCaseHasBeenSet(false), m_notifyOnResolveCase(false), m_notifyOnResolveCaseHasBeenSet(false), m_teamIdHasBeenSet(false) { } Aws::String CreateSlackChannelConfigurationRequest::SerializePayload() const { JsonValue payload; if(m_channelIdHasBeenSet) { payload.WithString("channelId", m_channelId); } if(m_channelNameHasBeenSet) { payload.WithString("channelName", m_channelName); } if(m_channelRoleArnHasBeenSet) { payload.WithString("channelRoleArn", m_channelRoleArn); } if(m_notifyOnAddCorrespondenceToCaseHasBeenSet) { payload.WithBool("notifyOnAddCorrespondenceToCase", m_notifyOnAddCorrespondenceToCase); } if(m_notifyOnCaseSeverityHasBeenSet) { payload.WithString("notifyOnCaseSeverity", NotificationSeverityLevelMapper::GetNameForNotificationSeverityLevel(m_notifyOnCaseSeverity)); } if(m_notifyOnCreateOrReopenCaseHasBeenSet) { payload.WithBool("notifyOnCreateOrReopenCase", m_notifyOnCreateOrReopenCase); } if(m_notifyOnResolveCaseHasBeenSet) { payload.WithBool("notifyOnResolveCase", m_notifyOnResolveCase); } if(m_teamIdHasBeenSet) { payload.WithString("teamId", m_teamId); } return payload.View().WriteReadable(); }