1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #include <aws/sso/model/LogoutRequest.h>
7 #include <aws/core/utils/json/JsonSerializer.h>
8 #include <aws/core/utils/memory/stl/AWSStringStream.h>
9 
10 #include <utility>
11 
12 using namespace Aws::SSO::Model;
13 using namespace Aws::Utils::Json;
14 using namespace Aws::Utils;
15 
LogoutRequest()16 LogoutRequest::LogoutRequest() :
17     m_accessTokenHasBeenSet(false)
18 {
19 }
20 
SerializePayload() const21 Aws::String LogoutRequest::SerializePayload() const
22 {
23   return {};
24 }
25 
GetRequestSpecificHeaders() const26 Aws::Http::HeaderValueCollection LogoutRequest::GetRequestSpecificHeaders() const
27 {
28   Aws::Http::HeaderValueCollection headers;
29   Aws::StringStream ss;
30   if(m_accessTokenHasBeenSet)
31   {
32     ss << m_accessToken;
33     headers.emplace("x-amz-sso_bearer_token",  ss.str());
34     ss.str("");
35   }
36 
37   return headers;
38 
39 }
40 
41 
42 
43 
44