/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Shield::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; AssociateHealthCheckRequest::AssociateHealthCheckRequest() : m_protectionIdHasBeenSet(false), m_healthCheckArnHasBeenSet(false) { } Aws::String AssociateHealthCheckRequest::SerializePayload() const { JsonValue payload; if(m_protectionIdHasBeenSet) { payload.WithString("ProtectionId", m_protectionId); } if(m_healthCheckArnHasBeenSet) { payload.WithString("HealthCheckArn", m_healthCheckArn); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection AssociateHealthCheckRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSShield_20160616.AssociateHealthCheck")); return headers; }