/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::WellArchitected::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateWorkloadShareRequest::CreateWorkloadShareRequest() : m_workloadIdHasBeenSet(false), m_sharedWithHasBeenSet(false), m_permissionType(PermissionType::NOT_SET), m_permissionTypeHasBeenSet(false), m_clientRequestToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientRequestTokenHasBeenSet(true) { } Aws::String CreateWorkloadShareRequest::SerializePayload() const { JsonValue payload; if(m_sharedWithHasBeenSet) { payload.WithString("SharedWith", m_sharedWith); } if(m_permissionTypeHasBeenSet) { payload.WithString("PermissionType", PermissionTypeMapper::GetNameForPermissionType(m_permissionType)); } if(m_clientRequestTokenHasBeenSet) { payload.WithString("ClientRequestToken", m_clientRequestToken); } return payload.View().WriteReadable(); }