/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ECR::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreatePullThroughCacheRuleRequest::CreatePullThroughCacheRuleRequest() : m_ecrRepositoryPrefixHasBeenSet(false), m_upstreamRegistryUrlHasBeenSet(false), m_registryIdHasBeenSet(false) { } Aws::String CreatePullThroughCacheRuleRequest::SerializePayload() const { JsonValue payload; if(m_ecrRepositoryPrefixHasBeenSet) { payload.WithString("ecrRepositoryPrefix", m_ecrRepositoryPrefix); } if(m_upstreamRegistryUrlHasBeenSet) { payload.WithString("upstreamRegistryUrl", m_upstreamRegistryUrl); } if(m_registryIdHasBeenSet) { payload.WithString("registryId", m_registryId); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection CreatePullThroughCacheRuleRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule")); return headers; }