/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CloudWatchEvents::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DeleteRuleRequest::DeleteRuleRequest() : m_nameHasBeenSet(false), m_eventBusNameHasBeenSet(false), m_force(false), m_forceHasBeenSet(false) { } Aws::String DeleteRuleRequest::SerializePayload() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_eventBusNameHasBeenSet) { payload.WithString("EventBusName", m_eventBusName); } if(m_forceHasBeenSet) { payload.WithBool("Force", m_force); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DeleteRuleRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSEvents.DeleteRule")); return headers; }