51 lines
1.0 KiB
C++
51 lines
1.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/sagemaker/model/UpdateDomainRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::SageMaker::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
UpdateDomainRequest::UpdateDomainRequest() :
|
|
m_domainIdHasBeenSet(false),
|
|
m_defaultUserSettingsHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String UpdateDomainRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_domainIdHasBeenSet)
|
|
{
|
|
payload.WithString("DomainId", m_domainId);
|
|
|
|
}
|
|
|
|
if(m_defaultUserSettingsHasBeenSet)
|
|
{
|
|
payload.WithObject("DefaultUserSettings", m_defaultUserSettings.Jsonize());
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection UpdateDomainRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SageMaker.UpdateDomain"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|