80 lines
1.6 KiB
C++
80 lines
1.6 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/appstream/model/DescribeSessionsRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::AppStream::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
DescribeSessionsRequest::DescribeSessionsRequest() :
|
|
m_stackNameHasBeenSet(false),
|
|
m_fleetNameHasBeenSet(false),
|
|
m_userIdHasBeenSet(false),
|
|
m_nextTokenHasBeenSet(false),
|
|
m_limit(0),
|
|
m_limitHasBeenSet(false),
|
|
m_authenticationType(AuthenticationType::NOT_SET),
|
|
m_authenticationTypeHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String DescribeSessionsRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_stackNameHasBeenSet)
|
|
{
|
|
payload.WithString("StackName", m_stackName);
|
|
|
|
}
|
|
|
|
if(m_fleetNameHasBeenSet)
|
|
{
|
|
payload.WithString("FleetName", m_fleetName);
|
|
|
|
}
|
|
|
|
if(m_userIdHasBeenSet)
|
|
{
|
|
payload.WithString("UserId", m_userId);
|
|
|
|
}
|
|
|
|
if(m_nextTokenHasBeenSet)
|
|
{
|
|
payload.WithString("NextToken", m_nextToken);
|
|
|
|
}
|
|
|
|
if(m_limitHasBeenSet)
|
|
{
|
|
payload.WithInteger("Limit", m_limit);
|
|
|
|
}
|
|
|
|
if(m_authenticationTypeHasBeenSet)
|
|
{
|
|
payload.WithString("AuthenticationType", AuthenticationTypeMapper::GetNameForAuthenticationType(m_authenticationType));
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection DescribeSessionsRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PhotonAdminProxyService.DescribeSessions"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|