/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CloudWatchLogs::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; PutRetentionPolicyRequest::PutRetentionPolicyRequest() : m_logGroupNameHasBeenSet(false), m_retentionInDays(0), m_retentionInDaysHasBeenSet(false) { } Aws::String PutRetentionPolicyRequest::SerializePayload() const { JsonValue payload; if(m_logGroupNameHasBeenSet) { payload.WithString("logGroupName", m_logGroupName); } if(m_retentionInDaysHasBeenSet) { payload.WithInteger("retentionInDays", m_retentionInDays); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection PutRetentionPolicyRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Logs_20140328.PutRetentionPolicy")); return headers; }